Passing integer variables. More...
#include <int.hh>
Constructors and initialization | |
IntVarArgs (void) | |
Allocate empty array. | |
IntVarArgs (int n) | |
Allocate array with n elements. | |
IntVarArgs (const IntVarArgs &a) | |
Initialize from variable argument array a (copy elements) | |
IntVarArgs (const VarArray< IntVar > &a) | |
Initialize from variable array a (copy elements) | |
IntVarArgs (const std::vector< IntVar > &a) | |
Initialize from vector a. | |
template<class InputIterator > | |
IntVarArgs (InputIterator first, InputIterator last) | |
Initialize from InputIterator first and last. | |
IntVarArgs (Space &home, int n, int min, int max) | |
Initialize array with n new variables. | |
IntVarArgs (Space &home, int n, const IntSet &s) | |
Initialize array with n new variables. |
Gecode::IntVarArgs::IntVarArgs | ( | void | ) | [inline] |
Gecode::IntVarArgs::IntVarArgs | ( | int | n | ) | [inline, explicit] |
Gecode::IntVarArgs::IntVarArgs | ( | const IntVarArgs & | a | ) | [inline] |
Gecode::IntVarArgs::IntVarArgs | ( | const VarArray< IntVar > & | a | ) | [inline] |
Gecode::IntVarArgs::IntVarArgs | ( | const std::vector< IntVar > & | a | ) | [inline] |
Gecode::IntVarArgs::IntVarArgs | ( | InputIterator | first, |
InputIterator | last | ||
) | [inline] |
Gecode::IntVarArgs::IntVarArgs | ( | Space & | home, |
int | n, | ||
int | min, | ||
int | max | ||
) |
Initialize array with n new variables.
The variables are created with a domain ranging from min to max. The following execptions might be thrown:
Gecode::IntVarArgs::IntVarArgs | ( | Space & | home, |
int | n, | ||
const IntSet & | s | ||
) |
Initialize array with n new variables.
The variables are created with a domain described by s. The following execptions might be thrown: