Gecode::FloatVarArray Class Reference
[Variable arrays]
#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. |
Detailed Description
Float variable array.
Definition at line 1016 of file float.hh.
Constructor & Destructor Documentation
Gecode::FloatVarArray::FloatVarArray | ( | void | ) | [inline] |
Gecode::FloatVarArray::FloatVarArray | ( | Space & | home, | |
int | n | |||
) | [inline] |
Gecode::FloatVarArray::FloatVarArray | ( | const FloatVarArray & | a | ) | [inline] |
Gecode::FloatVarArray::FloatVarArray | ( | Space & | home, | |
const FloatVarArgs & | a | |||
) | [inline] |
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::Float::VariableEmptyDomain is thrown.
- If min or max exceed the limits for floats as defined in Gecode::Float::Limits, an exception of type Gecode::Float::OutOfLimits is thrown.
The documentation for this class was generated from the following files:
- gecode/float.hh (Revision: 14241)
- gecode/float/array.cpp (Revision: 13241)
- gecode/float/array.hpp (Revision: 13241)