Generated on Wed Nov 1 15:05:12 2006 for Gecode by doxygen 1.4.5

Gecode::BoolVarArray Class Reference
[Variable arrays]

Inherits Gecode::IntVarArray.

List of all members.


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

BoolVaroperator[] (int i)
 Return variable at position i.
const BoolVaroperator[] (int i) const
 Return variable at position i.


Constructor & Destructor Documentation

Gecode::BoolVarArray::BoolVarArray void   )  [inline]
 

Default constructor (array of size 0).

Definition at line 239 of file array.icc.

Gecode::BoolVarArray::BoolVarArray Space home,
int  n
[inline]
 

Allocate array for n Boolean variables (variables are uninitialized).

Definition at line 246 of file array.icc.

Gecode::BoolVarArray::BoolVarArray const BoolVarArray a  )  [inline]
 

Initialize from Boolean variable array a (share elements).

Definition at line 242 of file array.icc.

Gecode::BoolVarArray::BoolVarArray 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 is less than 0 or max is greater than 1, an exception of type Gecode::Int::VariableOutOfDomain is thrown.

Definition at line 46 of file array.cc.


Member Function Documentation

BoolVar & Gecode::BoolVarArray::operator[] int  i  )  [inline]
 

Return variable at position i.

Reimplemented from Gecode::VarArray< IntVar >.

Definition at line 251 of file array.icc.

const BoolVar & Gecode::BoolVarArray::operator[] int  i  )  const [inline]
 

Return variable at position i.

Reimplemented from Gecode::VarArray< IntVar >.

Definition at line 257 of file array.icc.


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