Gecode::IntVarArgs Class Reference
[Argument arrays]
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. |
Detailed Description
Passing integer variables.
Definition at line 636 of file int.hh.
Constructor & Destructor Documentation
Gecode::IntVarArgs::IntVarArgs | ( | void | ) | [inline] |
Gecode::IntVarArgs::IntVarArgs | ( | int | n | ) | [inline, explicit] |
Gecode::IntVarArgs::IntVarArgs | ( | const IntVarArgs & | a | ) | [inline] |
Gecode::IntVarArgs::IntVarArgs | ( | const std::vector< IntVar > & | a | ) | [inline] |
template<class InputIterator >
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:
- If min is greater than max, an exception of type Gecode::Int::VariableEmptyDomain is thrown.
- If min or max exceed the limits for integers as defined in Gecode::Int::Limits, an exception of type Gecode::Int::OutOfLimits is thrown.
Initialize array with n new variables.
The variables are created with a domain described by s. The following execptions might be thrown:
- If s is empty, an exception of type Gecode::Int::VariableEmptyDomain is thrown.
- If s contains values that exceed the limits for integers as defined in Gecode::Int::Limits, an exception of type Gecode::Int::OutOfLimits is thrown.
The documentation for this class was generated from the following files:
- gecode/int.hh (Revision: 14362)
- gecode/int/array.cpp (Revision: 11440)