Gecode::FloatVarArgs Class Reference
Passing float variables. More...
#include <float.hh>
Constructors and initialization | |
| |
FloatVarArgs (void) | |
Allocate empty array. | |
FloatVarArgs (int n) | |
Allocate array with n elements. | |
FloatVarArgs (const FloatVarArgs &a) | |
Initialize from variable argument array a (copy elements). | |
FloatVarArgs (const VarArray< FloatVar > &a) | |
Initialize from variable array a (copy elements). | |
FloatVarArgs (const std::vector< FloatVar > &a) | |
Initialize from vector a. | |
FloatVarArgs (std::initializer_list< FloatVar > a) | |
Initialize from list a. | |
template<class InputIterator > | |
FloatVarArgs (InputIterator first, InputIterator last) | |
Initialize from InputIterator first and last. | |
FloatVarArgs (Space &home, int n, FloatNum min, FloatNum max) | |
Initialize array with n new variables. |
Detailed Description
Passing float variables.
Definition at line 979 of file float.hh.
Constructor & Destructor Documentation
Gecode::FloatVarArgs::FloatVarArgs | ( | void | ) | [inline] |
Gecode::FloatVarArgs::FloatVarArgs | ( | int | n | ) | [inline, explicit] |
Gecode::FloatVarArgs::FloatVarArgs | ( | const FloatVarArgs & | a | ) | [inline] |
Gecode::FloatVarArgs::FloatVarArgs | ( | const std::vector< FloatVar > & | a | ) | [inline] |
Gecode::FloatVarArgs::FloatVarArgs | ( | std::initializer_list< FloatVar > | a | ) | [inline] |
template<class InputIterator >
Gecode::FloatVarArgs::FloatVarArgs | ( | InputIterator | first, | |
InputIterator | last | |||
) | [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: