Generated on Sat Feb 7 2015 02:01:40 for Gecode by doxygen 1.8.9.1

Integer variable array. More...

#include <int.hh>

Creation and initialization

 IntVarArray (void)
 Default constructor (array of size 0) More...
 
 IntVarArray (Space &home, int n)
 Allocate array for n integer variables (variables are uninitialized) More...
 
 IntVarArray (const IntVarArray &a)
 Initialize from integer variable array a (share elements) More...
 
 IntVarArray (Space &home, const IntVarArgs &a)
 Initialize from integer variable argument array a (copy elements) More...
 
 IntVarArray (Space &home, int n, int min, int max)
 Initialize array with n new variables. More...
 
 IntVarArray (Space &home, int n, const IntSet &s)
 Initialize array with n new variables. More...
 

Additional Inherited Members

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

Detailed Description

Integer variable array.

Definition at line 741 of file int.hh.

Constructor & Destructor Documentation

Gecode::IntVarArray::IntVarArray ( void  )
inline

Default constructor (array of size 0)

Definition at line 80 of file array.hpp.

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

Allocate array for n integer variables (variables are uninitialized)

Definition at line 83 of file array.hpp.

Gecode::IntVarArray::IntVarArray ( const IntVarArray a)
inline

Initialize from integer variable array a (share elements)

Definition at line 87 of file array.hpp.

Gecode::IntVarArray::IntVarArray ( Space home,
const IntVarArgs a 
)
inline

Initialize from integer variable argument array a (copy elements)

Definition at line 91 of file array.hpp.

Gecode::IntVarArray::IntVarArray ( 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 51 of file array.cpp.

Gecode::IntVarArray::IntVarArray ( 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:

Definition at line 61 of file array.cpp.


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