Gecode::BoolVarArray Class Reference
[Variable arrays]
Inherits Gecode::IntVarArray.
Detailed Description
Boolean variable array.
Definition at line 121 of file array.icc.
Creation and initialization | |
BoolVarArray (void) | |
Default constructor (array of size 0). | |
BoolVarArray (Space *home, int n) | |
Allocate array for n Boolean variables (variables are uninitialized). | |
BoolVarArray (const BoolVarArray &a) | |
Initialize from Boolean variable array a (share elements). | |
BoolVarArray (Space *home, int n, int min, int max) | |
Initialize array with n new variables. | |
Array elements | |
BoolVar & | operator[] (int i) |
Return variable at position i. | |
const BoolVar & | operator[] (int i) const |
Return variable at position i. |
Constructor & Destructor Documentation
|
Default constructor (array of size 0).
|
|
Allocate array for n Boolean variables (variables are uninitialized).
|
|
Initialize from Boolean variable array a (share elements).
|
|
Initialize array with n new variables. The variables are created with a domain ranging from min to max. The following execptions might be thrown:
|
Member Function Documentation
|
Return variable at position i.
Reimplemented from Gecode::VarArray< IntVar >. |
|
Return variable at position i.
Reimplemented from Gecode::VarArray< IntVar >. |
The documentation for this class was generated from the following files:
- gecode/int/array.icc (Revision: 3512)
- gecode/int/array.cc (Revision: 3188)