Test::Int::Extensional::TupleSetBool Class Reference
[Extensional (relation) constraints]
Test with bool tuple set More...
Public Member Functions | |
TupleSetBool (double prob, bool p) | |
Create and register test. | |
virtual bool | solution (const Assignment &x) const |
Test whether x is solution | |
virtual void | post (Gecode::Space &home, Gecode::IntVarArray &x) |
Post constraint on x. | |
virtual void | post (Gecode::Space &home, Gecode::IntVarArray &x, Gecode::Reify r) |
Post reified constraint on x for r. | |
Protected Attributes | |
bool | pos |
Whether the table is positive or negative. | |
Gecode::TupleSet | t |
Tupleset used for testing. |
Detailed Description
Test with bool tuple set
Definition at line 555 of file extensional.cpp.
Constructor & Destructor Documentation
Test::Int::Extensional::TupleSetBool::TupleSetBool | ( | double | prob, | |
bool | p | |||
) | [inline] |
Create and register test.
Definition at line 563 of file extensional.cpp.
Member Function Documentation
virtual bool Test::Int::Extensional::TupleSetBool::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
Test whether x is solution
Implements Test::Int::Test.
Definition at line 580 of file extensional.cpp.
virtual void Test::Int::Extensional::TupleSetBool::post | ( | Gecode::Space & | home, | |
Gecode::IntVarArray & | x | |||
) | [inline, virtual] |
virtual void Test::Int::Extensional::TupleSetBool::post | ( | Gecode::Space & | home, | |
Gecode::IntVarArray & | x, | |||
Gecode::Reify | r | |||
) | [inline, virtual] |
Post reified constraint on x for r.
Reimplemented from Test::Int::Test.
Definition at line 602 of file extensional.cpp.
Member Data Documentation
bool Test::Int::Extensional::TupleSetBool::pos [protected] |
Whether the table is positive or negative.
Definition at line 558 of file extensional.cpp.
Gecode::TupleSet Test::Int::Extensional::TupleSetBool::t [mutable, protected] |
Tupleset used for testing.
Definition at line 560 of file extensional.cpp.
The documentation for this class was generated from the following file:
- test/int/extensional.cpp