Test::Float::Dom::Num Class Reference
[Domain constraints]
Test for domain constraints with float numbers More...
Public Member Functions | |
Num (int n, Gecode::FloatNum min0, Gecode::FloatNum max0, Gecode::FloatNum st) | |
Create and register test. | |
virtual MaybeType | solution (const Assignment &x) const |
Test whether x is solution | |
virtual void | post (Gecode::Space &home, Gecode::FloatVarArray &x) |
Post constraint on x. | |
virtual void | post (Gecode::Space &home, Gecode::FloatVarArray &x, Gecode::Reify r) |
Post reified constraint on x for r. | |
Protected Attributes | |
Gecode::FloatNum | min |
Float number. | |
Gecode::FloatNum | max |
Float number. |
Detailed Description
Test for domain constraints with float numbers
Definition at line 85 of file dom.cpp.
Constructor & Destructor Documentation
Test::Float::Dom::Num::Num | ( | int | n, | |
Gecode::FloatNum | min0, | |||
Gecode::FloatNum | max0, | |||
Gecode::FloatNum | st | |||
) | [inline] |
Member Function Documentation
virtual MaybeType Test::Float::Dom::Num::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
virtual void Test::Float::Dom::Num::post | ( | Gecode::Space & | home, | |
Gecode::FloatVarArray & | x | |||
) | [inline, virtual] |
virtual void Test::Float::Dom::Num::post | ( | Gecode::Space & | home, | |
Gecode::FloatVarArray & | x, | |||
Gecode::Reify | r | |||
) | [inline, virtual] |
Post reified constraint on x for r.
Reimplemented from Test::Float::Test.
Member Data Documentation
Gecode::FloatNum Test::Float::Dom::Num::min [protected] |
Gecode::FloatNum Test::Float::Dom::Num::max [protected] |
The documentation for this class was generated from the following file:
- test/float/dom.cpp