Test for single value precedence constraint More...
Public Member Functions | |
Single (int s0, int t0) | |
Create and register test. | |
virtual bool | solution (const SetAssignment &x) const |
Test whether x is solution | |
virtual void | post (Gecode::Space &home, Gecode::SetVarArray &x, Gecode::IntVarArray &) |
Post constraint on x. |
Test for single value precedence constraint
Definition at line 56 of file precede.cpp.
Test::Set::Precede::Single::Single | ( | int | s0, |
int | t0 | ||
) | [inline] |
Create and register test.
Definition at line 70 of file precede.cpp.
virtual bool Test::Set::Precede::Single::solution | ( | const SetAssignment & | x | ) | const [inline, virtual] |
Test whether x is solution
Implements Test::Set::SetTest.
Definition at line 74 of file precede.cpp.
virtual void Test::Set::Precede::Single::post | ( | Gecode::Space & | home, |
Gecode::SetVarArray & | x, | ||
Gecode::IntVarArray & | |||
) | [inline, virtual] |