array.hpp
Go to the documentation of this file.
const ArgArrayBase< T > & operator=(const ArgArrayBase< T > &a)
Initialize from view array a (copy elements).
Definition array.hpp:1592
reverse_iterator rbegin(void)
Return a reverse iterator at the end of the array.
Definition array.hpp:1650
std::reverse_iterator< T * > reverse_iterator
Type of the iterator used to iterate backwards through this array's elements.
Definition array.hpp:594
A concat(const ArgArrayBase< T > &x) const
Return this array concatenated with x.
Definition array.hpp:1722
reverse_iterator rend(void)
Return a reverse iterator past the beginning of the array.
Definition array.hpp:1662
T * iterator
Type of the iterator used to iterate through this array's elements.
Definition array.hpp:590
A & append(const T &x)
Insert a new element x at the end of the array (increase size by 1).
Definition array.hpp:1693
const T * const_iterator
Type of the iterator used to iterate read-only through this array's elements.
Definition array.hpp:592
std::reverse_iterator< const T * > const_reverse_iterator
Type of the iterator used to iterate backwards and read-only through this array's elements.
Definition array.hpp:596
ArgArray(InputIterator first, InputIterator last)
Initialize from InputIterator first and last.
Definition array.hpp:1781
ArgArray(const ArgArray< T > &a)
Initialize from argument array a (copy elements).
Definition array.hpp:1765
ArgArray(void)
ArrayTraits< ArgArray< T > >::ArgsType slice(int start, int inc=1, int n=-1)
Return slice of length n such that forall , .
Definition array.hpp:1786
ArgArray(int n, const T *e)
Allocate array with n elements and initialize with elements from array e.
Definition array.hpp:1757
friend ArrayTraits< ArgArray< T > >::ArgsType operator+(const ArgArray< T > &x, const ArgArray< T > &y)
Insert a new element x at the end of the array (increase size by 1).
Definition array.hpp:1810
ArrayTraits< ArgArray< T > >::ArgsType & operator<<(const T &x)
Insert a new element x at the end of the array (increase size by 1).
Definition array.hpp:1794
ArgArray< double > ArgsType
Definition array.hpp:752
ArgArray< double > StorageType
Definition array.hpp:750
static T * copy(T *d, const T *s, long unsigned int n)
Copy n objects starting at s to d.
Definition heap.hpp:593
T * alloc(long unsigned int n)
Allocate block of n objects of type T from heap.
Definition heap.hpp:441
T * alloc(long unsigned int n)
Allocate block of n objects of type T from region.
Definition region.hpp:386
T * alloc(long unsigned int n)
Allocate block of n objects of type T from space heap.
Definition core.hpp:2963
bool same(VarArgArray< Var > x, VarArgArray< Var > y)
Test whether array x together with array y contains at least one variable being the same.
Definition array.hpp:1936
ArrayTraits< VarArgArray< Var > >::ArgsType slice(int start, int inc=1, int n=-1)
Return slice of length n such that forall , .
Definition array.hpp:1875
VarArgArray & operator=(const VarArgArray &)=default
Assignment operator.
ArrayTraits< VarArgArray< Var > >::ArgsType & operator<<(const Var &x)
Insert a new element x at the end of the array (increase size by 1).
Definition array.hpp:1883
friend ArrayTraits< VarArgArray< Var > >::ArgsType operator+(const VarArgArray< Var > &x, const VarArgArray< Var > &y)
Insert a new element x at the end of the array (increase size by 1).
Definition array.hpp:1899
bool same(Var x, VarArgArray< Var > y)
Test whether array y contains variable x.
Definition array.hpp:1970
bool same(VarArgArray< Var > x, Var y)
Test whether array x contains variable y.
Definition array.hpp:1959
reverse_iterator rbegin(void)
Return a reverse iterator at the end of the array.
Definition array.hpp:1008
const VarArray< Var > & operator=(const VarArray< Var > &a)
Initialize from variable array a (share elements).
Definition array.hpp:938
ArrayTraits< VarArgArray< Var > >::ArgsType slice(int start, int inc=1, int n=-1)
Definition array.hpp:965
std::reverse_iterator< Var * > reverse_iterator
Type of the iterator used to iterate backwards through this array's elements.
Definition array.hpp:136
void update(Space &home, VarArray< Var > &a)
Update array to be a clone of array a.
Definition array.hpp:1032
const Var * const_iterator
Type of the iterator used to iterate read-only through this array's elements.
Definition array.hpp:134
std::reverse_iterator< const Var * > const_reverse_iterator
Type of the iterator used to iterate backwards and read-only through this array's elements.
Definition array.hpp:138
reverse_iterator rend(void)
Return a reverse iterator past the beginning of the array.
Definition array.hpp:1020
Var * iterator
Type of the iterator used to iterate through this array's elements.
Definition array.hpp:132
void update(Space &home, ViewArray< View > &a)
Update array to be a clone of array a.
Definition array.hpp:1337
bool shared(ViewArray< ViewX > x, ViewArray< ViewY > y)
Test whether array x together with array y contains shared views.
Definition array.hpp:1464
View * iterator
Type of the iterator used to iterate through this array's elements.
Definition array.hpp:275
void reschedule(Space &home, Propagator &p, PropCond pc)
Re-schedule propagator p with propagation condition pc.
Definition array.hpp:1379
const View * const_iterator
Type of the iterator used to iterate read-only through this array's elements.
Definition array.hpp:277
reverse_iterator rend(void)
Return a reverse iterator past the beginning of the array.
Definition array.hpp:1227
bool shared(ViewArray< ViewX > x, ViewY y)
Test whether array x contains a view shared with y.
Definition array.hpp:1487
std::reverse_iterator< View * > reverse_iterator
Type of the iterator used to iterate backwards through this array's elements.
Definition array.hpp:279
reverse_iterator rbegin(void)
Return a reverse iterator at the end of the array.
Definition array.hpp:1215
const ViewArray< View > & operator=(const ViewArray< View > &a)
Initialize from view array a (share elements).
Definition array.hpp:1158
std::reverse_iterator< const View * > const_reverse_iterator
Type of the iterator used to iterate backwards and read-only through this array's elements.
Definition array.hpp:281
ViewArray(Region &r, const VarArgArray< Var > &a)
Initialize from variable argument array a (copy elements).
Definition array.hpp:325
void unique(void)
Remove all duplicate views from array (changes element order).
Definition array.hpp:1426
void cancel(Space &home, Propagator &p, PropCond pc)
Cancel subscription of propagator p with propagation condition pc to all views.
Definition array.hpp:1358
void move_lst(int i)
Move view from position size()-1 to position i (truncate array by one).
Definition array.hpp:1245
void subscribe(Space &home, Propagator &p, PropCond pc, bool schedule=true)
Subscribe propagator p with propagation condition pc to variable.
Definition array.hpp:1350
bool same(void) const
Test whether array has multiple occurrence of the same view.
Definition array.hpp:1395
ViewArray(Space &home, const VarArgArray< Var > &a)
Initialize from variable argument array a (copy elements).
Definition array.hpp:307
void move_fst(int i)
Move view from position 0 to position i (shift elements to the left).
Definition array.hpp:1239
bool shared(ViewX x, ViewArray< ViewY > y)
Test whether array y contains a view shared with x.
Definition array.hpp:1498
bool shared(ViewArray< View > x)
Test whether array x contains shared views.
Definition array.hpp:1504
Kernel functionality
bool duplicates(void **p, int n)
Check whether p has duplicates among its n elements (changes p).
Gecode toplevel namespace
