Generated on Mon Feb 8 2021 00:00:00 for Gecode by doxygen 1.8.20
Gecode::SetVarArgs Class Reference

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

- Public Member Functions inherited from Gecode::VarArgArray< SetVar >
 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 $y$ of length n such that forall $0\leq i<n$, $y_i=x_{\text{start}+i\cdot\text{inc}}$. More...
 
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...
 

Detailed Description

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.

Definition at line 488 of file set.hh.

Constructor & Destructor Documentation

◆ SetVarArgs() [1/11]

Gecode::SetVarArgs::SetVarArgs ( void  )
inline

Allocate empty array.

Definition at line 48 of file array.hpp.

◆ SetVarArgs() [2/11]

Gecode::SetVarArgs::SetVarArgs ( int  n)
inlineexplicit

Allocate array with n elements.

Definition at line 51 of file array.hpp.

◆ SetVarArgs() [3/11]

Gecode::SetVarArgs::SetVarArgs ( const SetVarArgs a)
inline

Initialize from variable argument array a (copy elements)

Definition at line 55 of file array.hpp.

◆ SetVarArgs() [4/11]

Gecode::SetVarArgs::SetVarArgs ( const VarArray< SetVar > &  a)
inline

Initialize from variable array a (copy elements)

Definition at line 59 of file array.hpp.

◆ SetVarArgs() [5/11]

Gecode::SetVarArgs::SetVarArgs ( const std::vector< SetVar > &  a)
inline

Initialize from vector a.

Definition at line 63 of file array.hpp.

◆ SetVarArgs() [6/11]

Gecode::SetVarArgs::SetVarArgs ( std::initializer_list< SetVar a)
inline

Initialize from list a.

Definition at line 67 of file array.hpp.

◆ SetVarArgs() [7/11]

template<class InputIterator >
Gecode::SetVarArgs::SetVarArgs ( InputIterator  first,
InputIterator  last 
)
inline

Initialize from InputIterator first and last.

Definition at line 72 of file array.hpp.

◆ SetVarArgs() [8/11]

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 
)

Create an array of size n.

Each variable is initialized with the bounds and cardinality as given by the arguments.

Definition at line 131 of file array.cpp.

◆ SetVarArgs() [9/11]

Gecode::SetVarArgs::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.

Each variable is initialized with the bounds and cardinality as given by the arguments.

Definition at line 152 of file array.cpp.

◆ SetVarArgs() [10/11]

Gecode::SetVarArgs::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.

Each variable is initialized with the bounds and cardinality as given by the arguments.

Definition at line 171 of file array.cpp.

◆ SetVarArgs() [11/11]

Gecode::SetVarArgs::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.

Each variable is initialized with the bounds and cardinality as given by the arguments.

Definition at line 192 of file array.cpp.


The documentation for this class was generated from the following files: