Test::Float::Rel::FloatFloat Class Reference
[Relation constraints]
Test for simple relation involving float variable and float constant More...
Public Member Functions | |
FloatFloat (Gecode::FloatRelType frt0, int n, Gecode::FloatNum c0, 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::FloatRelType | frt |
Float relation type to propagate. | |
Gecode::FloatVal | c |
Float constant. |
Detailed Description
Test for simple relation involving float variable and float constant
Definition at line 123 of file rel.cpp.
Constructor & Destructor Documentation
Test::Float::Rel::FloatFloat::FloatFloat | ( | Gecode::FloatRelType | frt0, | |
int | n, | |||
Gecode::FloatNum | c0, | |||
Gecode::FloatNum | st | |||
) | [inline] |
Member Function Documentation
virtual MaybeType Test::Float::Rel::FloatFloat::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
virtual void Test::Float::Rel::FloatFloat::post | ( | Gecode::Space & | home, | |
Gecode::FloatVarArray & | x | |||
) | [inline, virtual] |
virtual void Test::Float::Rel::FloatFloat::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::FloatVal Test::Float::Rel::FloatFloat::c [protected] |
The documentation for this class was generated from the following file:
- test/float/rel.cpp