Float variables.
More...
#include <float.hh>
|
(Note that these are not member functions.)
|
template<class Char , class Traits > |
std::basic_ostream< Char, Traits > & | operator<< (std::basic_ostream< Char, Traits > &os, const FloatVar &x) |
| Print float variable x. More...
|
|
Float variables.
Definition at line 857 of file float.hh.
Gecode::FloatVar::FloatVar |
( |
void |
| ) |
|
|
inline |
Default constructor.
Definition at line 48 of file float.hpp.
Gecode::FloatVar::FloatVar |
( |
const FloatVar & |
y | ) |
|
|
inline |
Initialize from float variable y.
Definition at line 50 of file float.hpp.
Initialize from float view y.
Definition at line 53 of file float.hpp.
Initialize variable with range domain.
The variable is created with a domain ranging from min to max. The following exceptions might be thrown:
Definition at line 44 of file float.cpp.
FloatVal Gecode::FloatVar::domain |
( |
void |
| ) |
const |
|
inline |
Return domain.
Definition at line 76 of file float.hpp.
FloatNum Gecode::FloatVar::min |
( |
void |
| ) |
const |
|
inline |
Return minimum of domain.
Definition at line 63 of file float.hpp.
FloatNum Gecode::FloatVar::max |
( |
void |
| ) |
const |
|
inline |
Return maximum of domain.
Definition at line 71 of file float.hpp.
FloatNum Gecode::FloatVar::med |
( |
void |
| ) |
const |
|
inline |
Return median of domain.
Definition at line 67 of file float.hpp.
FloatNum Gecode::FloatVar::size |
( |
void |
| ) |
const |
|
inline |
Return size of domain (distance between maximum and minimum)
Definition at line 81 of file float.hpp.
FloatVal Gecode::FloatVar::val |
( |
void |
| ) |
const |
|
inline |
bool Gecode::FloatVar::in |
( |
const FloatVal & |
n | ) |
const |
|
inline |
Test whether n is contained in domain.
Definition at line 86 of file float.hpp.
template<class Char , class Traits >
std::basic_ostream< Char, Traits > & operator<< |
( |
std::basic_ostream< Char, Traits > & |
os, |
|
|
const FloatVar & |
x |
|
) |
| |
|
related |
Print float variable x.
Definition at line 44 of file print.hpp.
The documentation for this class was generated from the following files: