Generated on Wed Sep 5 2012 18:52:23 for Gecode by doxygen 1.8.1.1
Gecode::BoolVarArray Class Reference

Boolean variable array. More...

#include <int.hh>

List of all members.

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, const BoolVarArgs &a)
 Initialize from Boolean variable argument array a (copy elements)
 BoolVarArray (Space &home, int n, int min, int max)
 Initialize array with n new variables.

Additional Inherited Members

- Public Types inherited from Gecode::VarArray< BoolVar >
typedef BoolVar value_type
 Type of the variable stored in this array.
typedef BoolVarreference
 Type of a reference to the value type.
typedef const BoolVarconst_reference
 Type of a constant reference to the value type.
typedef BoolVarpointer
 Type of a pointer to the value type.
typedef const BoolVarconst_pointer
 Type of a read-only pointer to the value type.
typedef BoolVariterator
 Type of the iterator used to iterate through this array's elements.
typedef const BoolVarconst_iterator
 Type of the iterator used to iterate read-only through this array's elements.
typedef std::reverse_iterator
< BoolVar * > 
reverse_iterator
 Type of the iterator used to iterate backwards through this array's elements.
typedef std::reverse_iterator
< const BoolVar * > 
const_reverse_iterator
 Type of the iterator used to iterate backwards and read-only through this array's elements.
- Public Member Functions inherited from Gecode::VarArray< BoolVar >
bool assigned (void) const
 Test if all variables are assigned.
 VarArray (void)
 Default constructor (array of size 0)
 VarArray (Space &home, int m)
 Allocate array with m variables.
 VarArray (Space &home, const VarArgArray< BoolVar > &)
 Initialize from variable argument array a (copy elements)
 VarArray (const VarArray< BoolVar > &a)
 Initialize from variable array a (share elements)
const VarArray< BoolVar > & operator= (const VarArray< BoolVar > &a)
 Initialize from variable array a (share elements)
int size (void) const
 Return size of array (number of elements)
BoolVaroperator[] (int i)
 Return variable at position i.
const BoolVaroperator[] (int i) const
 Return variable at position i.
ArrayTraits< VarArgArray
< BoolVar > >::ArgsType 
slice (int start, int inc=1, int n=-1)
iterator begin (void)
 Return an iterator at the beginning of the array.
const_iterator begin (void) const
 Return a read-only iterator at the beginning of the array.
iterator end (void)
 Return an iterator past the end of the array.
const_iterator end (void) const
 Return a read-only iterator past the end of the array.
reverse_iterator rbegin (void)
 Return a reverse iterator at the end of the array.
const_reverse_iterator rbegin (void) const
 Return a reverse and read-only iterator at the end of the array.
reverse_iterator rend (void)
 Return a reverse iterator past the beginning of the array.
const_reverse_iterator rend (void) const
 Return a reverse and read-only iterator past the beginning of the array.
void update (Space &, bool share, VarArray< BoolVar > &a)
 Update array to be a clone of array a.
- Protected Attributes inherited from Gecode::VarArray< BoolVar >
int n
 Number of variables (size)
BoolVarx
 Array of variables.

Detailed Description

Boolean variable array.

Definition at line 756 of file int.hh.


Constructor & Destructor Documentation

Gecode::BoolVarArray::BoolVarArray ( void  )
inline

Default constructor (array of size 0)

Definition at line 95 of file array.hpp.

Gecode::BoolVarArray::BoolVarArray ( Space home,
int  n 
)
inline

Allocate array for n Boolean variables (variables are uninitialized)

Definition at line 98 of file array.hpp.

Gecode::BoolVarArray::BoolVarArray ( const BoolVarArray a)
inline

Initialize from Boolean variable array a (share elements)

Definition at line 102 of file array.hpp.

Gecode::BoolVarArray::BoolVarArray ( Space home,
const BoolVarArgs a 
)
inline

Initialize from Boolean variable argument array a (copy elements)

Definition at line 106 of file array.hpp.

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:

Definition at line 71 of file array.cpp.


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