Set variable array More...
#include <set.hh>
Creation and initialization | |
SetVarArray (void) | |
Default constructor (array of size 0) More... | |
SetVarArray (const SetVarArray &) | |
Initialize from set variable array a (share elements) More... | |
SetVarArray (Space &home, const SetVarArgs &) | |
Initialize from set variable argument array a (copy elements) More... | |
SetVarArray (Space &home, int n) | |
Allocate array for n set variables (variables are uninitialized) More... | |
SetVarArray (Space &home, int n, int glbMin, int glbMax, int lubMin, int lubMax, unsigned int minCard=0, unsigned int maxCard=Set::Limits::card) | |
Create an array of size n. More... | |
SetVarArray (Space &home, int n, const IntSet &glb, int lubMin, int lubMax, unsigned int minCard=0, unsigned int maxCard=Set::Limits::card) | |
Create an array of size n. More... | |
SetVarArray (Space &home, int n, int glbMin, int glbMax, const IntSet &lub, unsigned int minCard=0, unsigned int maxCard=Set::Limits::card) | |
Create an array of size n. More... | |
SetVarArray (Space &home, int n, const IntSet &glb, const IntSet &lub, unsigned int minCard=0, unsigned int maxCard=Set::Limits::card) | |
Create an array of size n. More... | |
Additional Inherited Members | |
![]() | |
typedef SetVar | value_type |
Type of the variable stored in this array. More... | |
typedef SetVar & | reference |
Type of a reference to the value type. More... | |
typedef const SetVar & | const_reference |
Type of a constant reference to the value type. More... | |
typedef SetVar * | pointer |
Type of a pointer to the value type. More... | |
typedef const SetVar * | const_pointer |
Type of a read-only pointer to the value type. More... | |
typedef SetVar * | iterator |
Type of the iterator used to iterate through this array's elements. More... | |
typedef const SetVar * | const_iterator |
Type of the iterator used to iterate read-only through this array's elements. More... | |
typedef std::reverse_iterator< SetVar * > | reverse_iterator |
Type of the iterator used to iterate backwards through this array's elements. More... | |
typedef std::reverse_iterator< const SetVar * > | const_reverse_iterator |
Type of the iterator used to iterate backwards and read-only through this array's elements. More... | |
![]() | |
bool | assigned (void) const |
Test if all variables are assigned. More... | |
VarArray (void) | |
Default constructor (array of size 0) More... | |
VarArray (Space &home, int m) | |
Allocate array with m variables. More... | |
VarArray (Space &home, const VarArgArray< SetVar > &) | |
Initialize from variable argument array a (copy elements) More... | |
VarArray (const VarArray< SetVar > &a) | |
Initialize from variable array a (share elements) More... | |
const VarArray< SetVar > & | operator= (const VarArray< SetVar > &a) |
Initialize from variable array a (share elements) More... | |
int | size (void) const |
Return size of array (number of elements) More... | |
SetVar & | operator[] (int i) |
Return variable at position i. More... | |
const SetVar & | operator[] (int i) const |
Return variable at position i. More... | |
ArrayTraits< VarArgArray< SetVar > >::ArgsType | slice (int start, int inc=1, int n=-1) |
iterator | begin (void) |
Return an iterator at the beginning of the array. More... | |
const_iterator | begin (void) const |
Return a read-only iterator at the beginning of the array. More... | |
iterator | end (void) |
Return an iterator past the end of the array. More... | |
const_iterator | end (void) const |
Return a read-only iterator past the end of the array. More... | |
reverse_iterator | rbegin (void) |
Return a reverse iterator at the end of the array. More... | |
const_reverse_iterator | rbegin (void) const |
Return a reverse and read-only iterator at the end of the array. More... | |
reverse_iterator | rend (void) |
Return a reverse iterator past the beginning of the array. More... | |
const_reverse_iterator | rend (void) const |
Return a reverse and read-only iterator past the beginning of the array. More... | |
void | update (Space &, bool share, VarArray< SetVar > &a) |
Update array to be a clone of array a. More... | |
![]() | |
int | n |
Number of variables (size) More... | |
SetVar * | x |
Array of variables. More... | |
|
inline |
|
inline |
|
inline |
Gecode::SetVarArray::SetVarArray | ( | Space & | home, |
int | n | ||
) |
Gecode::SetVarArray::SetVarArray | ( | Space & | home, |
int | n, | ||
int | glbMin, | ||
int | glbMax, | ||
int | lubMin, | ||
int | lubMax, | ||
unsigned int | minCard = 0 , |
||
unsigned int | maxCard = Set::Limits::card |
||
) |
Gecode::SetVarArray::SetVarArray | ( | Space & | home, |
int | n, | ||
const IntSet & | glb, | ||
int | lubMin, | ||
int | lubMax, | ||
unsigned int | minCard = 0 , |
||
unsigned int | maxCard = Set::Limits::card |
||
) |
Gecode::SetVarArray::SetVarArray | ( | Space & | home, |
int | n, | ||
int | glbMin, | ||
int | glbMax, | ||
const IntSet & | lub, | ||
unsigned int | minCard = 0 , |
||
unsigned int | maxCard = Set::Limits::card |
||
) |
Gecode::SetVarArray::SetVarArray | ( | Space & | home, |
int | n, | ||
const IntSet & | glb, | ||
const IntSet & | lub, | ||
unsigned int | minCard = 0 , |
||
unsigned int | maxCard = Set::Limits::card |
||
) |