Passing set variables. More...
#include <set.hh>
Constructors and initialization | |
SetVarArgs (void) | |
Allocate empty array. More... | |
SetVarArgs (int n) | |
Allocate array with n elements. More... | |
SetVarArgs (const SetVarArgs &a) | |
Initialize from variable argument array a (copy elements) More... | |
SetVarArgs (const VarArray< SetVar > &a) | |
Initialize from variable array a (copy elements) More... | |
SetVarArgs (const std::vector< SetVar > &a) | |
Initialize from vector a. More... | |
SetVarArgs (std::initializer_list< SetVar > a) | |
Initialize from list a. More... | |
template<class InputIterator > | |
SetVarArgs (InputIterator first, InputIterator last) | |
Initialize from InputIterator first and last. More... | |
SetVarArgs (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... | |
SetVarArgs (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... | |
SetVarArgs (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... | |
SetVarArgs (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 | |
![]() | |
VarArgArray (void) | |
Allocate empty array. More... | |
VarArgArray (int n) | |
Allocate array with n elements. More... | |
VarArgArray (const VarArgArray< SetVar > &a) | |
Initialize from variable argument array a (copy elements) More... | |
VarArgArray (const VarArray< SetVar > &a) | |
Initialize from variable array a (copy elements) More... | |
VarArgArray (const std::vector< SetVar > &a) | |
Initialize from vector a. More... | |
VarArgArray (std::initializer_list< SetVar > a) | |
Initialize from initializer list a. More... | |
VarArgArray (InputIterator first, InputIterator last) | |
Initialize from InputIterator first and last. More... | |
ArrayTraits< VarArgArray< SetVar > >::ArgsType | slice (int start, int inc=1, int n=-1) |
Return slice ![]() ![]() ![]() | |
ArrayTraits< VarArgArray< SetVar > >::ArgsType & | operator<< (const SetVar &x) |
Insert a new element x at the end of the array (increase size by 1) More... | |
ArrayTraits< VarArgArray< SetVar > >::ArgsType & | operator<< (const VarArgArray< SetVar > &x) |
Append x to the end of the array. More... | |
bool | assigned (void) const |
Test if all variables are assigned. More... | |
![]() | |
bool | same (VarArgArray< SetVar > x, VarArgArray< SetVar > y) |
Test whether array x together with array y contains at least one variable being the same. More... | |
bool | same (VarArgArray< SetVar > x, SetVar y) |
Test whether array x contains variable y. More... | |
bool | same (SetVar x, VarArgArray< SetVar > y) |
Test whether array y contains variable x. More... | |
bool | same (VarArgArray< SetVar > x) |
Test whether array x contains a variable multiply. More... | |
Passing set variables.
We could have used a simple typedef instead, but doxygen cannot resolve some overloading then, leading to unusable documentation for important parts of the library. As long as there is no fix for this, we will keep this workaround.
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
Gecode::SetVarArgs::SetVarArgs | ( | Space & | home, |
int | n, | ||
int | glbMin, | ||
int | glbMax, | ||
int | lubMin, | ||
int | lubMax, | ||
unsigned int | minCard = 0 , |
||
unsigned int | maxCard = Set::Limits::card |
||
) |
Gecode::SetVarArgs::SetVarArgs | ( | Space & | home, |
int | n, | ||
const IntSet & | glb, | ||
int | lubMin, | ||
int | lubMax, | ||
unsigned int | minCard = 0 , |
||
unsigned int | maxCard = Set::Limits::card |
||
) |
Gecode::SetVarArgs::SetVarArgs | ( | Space & | home, |
int | n, | ||
int | glbMin, | ||
int | glbMax, | ||
const IntSet & | lub, | ||
unsigned int | minCard = 0 , |
||
unsigned int | maxCard = Set::Limits::card |
||
) |
Gecode::SetVarArgs::SetVarArgs | ( | Space & | home, |
int | n, | ||
const IntSet & | glb, | ||
const IntSet & | lub, | ||
unsigned int | minCard = 0 , |
||
unsigned int | maxCard = Set::Limits::card |
||
) |