Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0

Float variable array. More...

#include <float.hh>

Creation and initialization

 FloatVarArray (void)
 Default constructor (array of size 0)
 
 FloatVarArray (Space &home, int n)
 Allocate array for n float variables (variables are uninitialized)
 
 FloatVarArray (const FloatVarArray &a)
 Initialize from float variable array a (share elements)
 
 FloatVarArray (Space &home, const FloatVarArgs &a)
 Initialize from float variable argument array a (copy elements)
 
 FloatVarArray (Space &home, int n, FloatNum min, FloatNum max)
 Initialize array with n new variables.
 

Additional Inherited Members

- Public Types inherited from Gecode::VarArray< FloatVar >
typedef FloatVar value_type
 Type of the variable stored in this array.
 
typedef FloatVarreference
 Type of a reference to the value type.
 
typedef const FloatVarconst_reference
 Type of a constant reference to the value type.
 
typedef FloatVarpointer
 Type of a pointer to the value type.
 
typedef const FloatVarconst_pointer
 Type of a read-only pointer to the value type.
 
typedef FloatVariterator
 Type of the iterator used to iterate through this array's elements.
 
typedef const FloatVarconst_iterator
 Type of the iterator used to iterate read-only through this array's elements.
 
typedef std::reverse_iterator< FloatVar * > reverse_iterator
 Type of the iterator used to iterate backwards through this array's elements.
 
typedef std::reverse_iterator< const FloatVar * > 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< FloatVar >
 VarArray (void)
 Default constructor (array of size 0)
 
 VarArray (Space &home, int m)
 Allocate array with m variables.
 
 VarArray (Space &home, const VarArgArray< FloatVar > &)
 Initialize from variable argument array a (copy elements)
 
 VarArray (const VarArray< FloatVar > &a)
 Initialize from variable array a (share elements)
 
const VarArray< FloatVar > & operator= (const VarArray< FloatVar > &a)
 Initialize from variable array a (share elements)
 
int size (void) const
 Return size of array (number of elements)
 
FloatVaroperator[] (int i)
 Return variable at position i.
 
const FloatVaroperator[] (int i) const
 Return variable at position i.
 
ArrayTraits< VarArgArray< FloatVar > >::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.
 
bool assigned (void) const
 Test if all variables are assigned.
 
void update (Space &home, VarArray< FloatVar > &a)
 Update array to be a clone of array a.
 
- Protected Attributes inherited from Gecode::VarArray< FloatVar >
int n
 Number of variables (size)
 
FloatVarx
 Array of variables.
 

Detailed Description

Float variable array.

Definition at line 1030 of file float.hh.

Constructor & Destructor Documentation

◆ FloatVarArray() [1/5]

Gecode::FloatVarArray::FloatVarArray ( void )
inline

Default constructor (array of size 0)

Definition at line 102 of file array.hpp.

◆ FloatVarArray() [2/5]

Gecode::FloatVarArray::FloatVarArray ( Space & home,
int n )
inline

Allocate array for n float variables (variables are uninitialized)

Definition at line 105 of file array.hpp.

◆ FloatVarArray() [3/5]

Gecode::FloatVarArray::FloatVarArray ( const FloatVarArray & a)
inline

Initialize from float variable array a (share elements)

Definition at line 109 of file array.hpp.

◆ FloatVarArray() [4/5]

Gecode::FloatVarArray::FloatVarArray ( Space & home,
const FloatVarArgs & a )
inline

Initialize from float variable argument array a (copy elements)

Definition at line 113 of file array.hpp.

◆ FloatVarArray() [5/5]

Gecode::FloatVarArray::FloatVarArray ( Space & home,
int n,
FloatNum min,
FloatNum 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 48 of file array.cpp.


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