84 const T*
begin(
void)
const;
88 const T*
end(
void)
const;
142 int size(
void)
const;
146 iterator
begin(
void);
149 const_iterator
begin(
void)
const;
153 const_iterator
end(
void)
const;
155 reverse_iterator
rbegin(
void);
157 const_reverse_iterator
rbegin(
void)
const;
159 reverse_iterator
rend(
void);
161 const_reverse_iterator
rend(
void)
const;
169 template<
class Char,
class Traits,
class T>
170 std::basic_ostream<Char,Traits>&
171 operator <<(std::basic_ostream<Char,Traits>& os,
200 assert((i>=0) && (i<n));
207 assert((i>=0) && (i<n));
259 assert(
object() == NULL);
266 assert(
object() != NULL);
267 return (*static_cast<SAO*>(
object()))[
i];
273 assert(
object() != NULL);
274 return (*static_cast<SAO*>(
object()))[
i];
281 for (
int i=a.
size();
i--; )
288 assert(
object() != NULL);
289 return static_cast<SAO*
>(object())->
size();
295 assert(
object() != NULL);
296 return static_cast<SAO*
>(object())->begin();
302 assert(
object() != NULL);
303 return static_cast<SAO*
>(object())->begin();
309 assert(
object() != NULL);
310 return static_cast<SAO*
>(object())->end();
316 assert(
object() != NULL);
317 return static_cast<SAO*
>(object())->end();
323 assert(
object() != NULL);
330 assert(
object() != NULL);
337 assert(
object() != NULL);
344 assert(
object() != NULL);
348 template<
class Char,
class Traits,
class T>
349 std::basic_ostream<Char,Traits>&
350 operator <<(std::basic_ostream<Char,Traits>& os,
352 std::basic_ostringstream<Char,Traits> s;
353 s.copyfmt(os); s.width(0);
361 return os << s.str();
T & operator[](int i)
Access element at position i.
int size(void) const
Return size of array (number of elements)
const T * const_iterator
Type of the iterator used to iterate read-only through this array's elements.
T * end(void)
Return end of array (for iterators)
Implementation of object for shared arrays.
const T & const_reference
Type of a constant reference to the value type.
T value_type
Type of the view stored in this array.
SAO(int n)
Allocate for n elements.
T * alloc(long unsigned int n)
Allocate block of n objects of type T from heap.
Gecode::IntArgs i(4, 1, 2, 3, 4)
void init(int n)
Initialize as array with n elements.
int n
Number of negative literals for node type.
T * iterator
Type of the iterator used to iterate through this array's elements.
unsigned int size(I &i)
Size of all ranges of range iterator i.
int size(void) const
Return number of elements.
reverse_iterator rbegin(void)
Return a reverse iterator at the end of the array.
T & reference
Type of a reference to the value type.
const T * const_pointer
Type of a read-only pointer to the value type.
T * begin(void)
Return beginning of array (for iterators)
virtual ~SAO(void)
Delete object.
void free(T *b, long unsigned int n)
Delete n objects starting at b.
Node * x
Pointer to corresponding Boolean expression node.
struct Gecode::@585::NNF::@62::@64 a
For atomic nodes.
T * pointer
Type of a pointer to the value type.
Base-class for argument arrays.
Heap heap
The single global heap.
Post propagator for SetVar x
reverse_iterator rend(void)
Return a reverse iterator past the beginning of the array.
std::reverse_iterator< T * > reverse_iterator
Type of the iterator used to iterate backwards through this array's elements.
Gecode toplevel namespace
Shared array with arbitrary number of elements.
SharedArray(void)
Construct as not yet intialized.
std::reverse_iterator< const T * > const_reverse_iterator
Type of the iterator used to iterate backwards and read-only through this array's elements...