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
const_reverse_iterator rend(void) const
Return a reverse and read-only iterator past the beginning of the array.
Definition array.hpp:1668
const_reverse_iterator rbegin(void) const
Return a reverse and read-only iterator at the end of the array.
Definition array.hpp:1656
reverse_iterator rbegin(void)
Return a reverse iterator at the end of the array.
Definition array.hpp:1650
const_iterator end(void) const
Return a read-only iterator past the end of the array.
Definition array.hpp:1644
std::reverse_iterator< T * > reverse_iterator
Type of the iterator used to iterate backwards through this array's elements.
Definition array.hpp:594
ArgArrayBase(std::initializer_list< T > a)
Initialize from initializer list a.
Definition array.hpp:1575
A concat(const ArgArrayBase< T > &x) const
Return this array concatenated with x.
Definition array.hpp:1722
ArgArrayBase(InputIterator first, InputIterator last)
Initialize from InputIterator begin and end.
Definition array.hpp:1702
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
const_iterator begin(void) const
Return a read-only iterator at the beginning of the array.
Definition array.hpp:1632
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
ArgArrayBase(const ArgArrayBase< T > &a)
Initialize from argument array a (copy elements).
Definition array.hpp:1559
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
T * alloc(long unsigned int n)
Allocate block of n objects of type T from space heap.
Definition core.hpp:2973
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
const_reverse_iterator rend(void) const
Return a reverse and read-only iterator past the beginning of the array.
Definition array.hpp:1026
const_iterator begin(void) const
Return a read-only iterator at the beginning of the array.
Definition array.hpp:990
std::reverse_iterator< Var * > reverse_iterator
Type of the iterator used to iterate backwards through this array's elements.
Definition array.hpp:136
const_iterator end(void) const
Return a read-only iterator past the end of the array.
Definition array.hpp:1002
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
VarArray(Space &home, const VarArgArray< Var > &)
Initialize from variable argument array a (copy elements).
Definition array.hpp:1997
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
VarArray(const VarArray< Var > &a)
Initialize from variable array a (share elements).
Definition array.hpp:932
const_reverse_iterator rbegin(void) const
Return a reverse and read-only iterator at the end of the array.
Definition array.hpp:1014
void update(Space &home, ViewArray< View > &a)
Update array to be a clone of array a.
Definition array.hpp:1337
bool same(const View &y) const
Test whether array contains a view being the same as y.
Definition array.hpp:1415
void drop_fst(int i, Space &home, Propagator &p, PropCond pc)
Drop views from positions 0 to i-1 from array.
Definition array.hpp:1281
void move_fst(int i, Space &home, Propagator &p, PropCond pc)
Move view from position 0 to position i (shift elements to the left).
Definition array.hpp:1265
const_iterator begin(void) const
Return a read-only iterator at the beginning of the array.
Definition array.hpp:1197
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_reverse_iterator rend(void) const
Return a reverse and read-only iterator past the beginning of the array.
Definition array.hpp:1233
const View * const_iterator
Type of the iterator used to iterate read-only through this array's elements.
Definition array.hpp:277
void drop_lst(int i, Space &home, Propagator &p, PropCond pc)
Drop assigned views from positions i+1 to size()-1 from array.
Definition array.hpp:1291
ViewArray(Space &home, const ViewArray< View > &a)
Initialize from view array a (copy elements).
Definition array.hpp:1129
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
void drop_fst(int i, Space &home, Advisor &a)
Drop views from positions 0 to i-1 from array.
Definition array.hpp:1317
std::reverse_iterator< View * > reverse_iterator
Type of the iterator used to iterate backwards through this array's elements.
Definition array.hpp:279
void move_fst(int i, Space &home, Advisor &a)
Move view from position 0 to position i (shift elements to the left).
Definition array.hpp:1301
void move_lst(int i, Space &home, Advisor &a)
Move view from position size()-1 to position i (truncate array by one).
Definition array.hpp:1309
ViewArray(const ViewArray< View > &a)
Initialize from view array a (share elements).
Definition array.hpp:1153
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
const_reverse_iterator rbegin(void) const
Return a reverse and read-only iterator at the end of the array.
Definition array.hpp:1221
void drop_lst(int i, Space &home, Advisor &a)
Drop assigned views from positions i+1 to size()-1 from array.
Definition array.hpp:1327
void move_lst(int i)
Move view from position size()-1 to position i (truncate array by one).
Definition array.hpp:1245
const_iterator end(void) const
Return a read-only iterator past the end of the array.
Definition array.hpp:1209
void subscribe(Space &home, Propagator &p, PropCond pc, bool schedule=true)
Subscribe propagator p with propagation condition pc to variable.
Definition array.hpp:1350
void move_lst(int i, Space &home, Propagator &p, PropCond pc)
Move view from position size()-1 to position i (truncate array by one).
Definition array.hpp:1273
ViewArray(Region &r, const ViewArray< View > &a)
Initialize from view array a (copy elements).
Definition array.hpp:1140
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
int size(void) const
Kernel functionality
bool duplicates(void **p, int n)
Check whether p has duplicates among its n elements (changes p).
Definition array.cpp:39
Gecode toplevel namespace
Gecode::IntArgs i({1, 2, 3, 4})
