Simple test for distinct constraint with offsets. More...
Public Member Functions | |
Offset (const Gecode::IntSet &d, Gecode::IntConLevel icl) | |
Create and register test. | |
Offset (int min, int max, Gecode::IntConLevel icl) | |
Create and register test. | |
virtual bool | solution (const Assignment &x) const |
Check whether x is solution. | |
virtual void | post (Gecode::Space &home, Gecode::IntVarArray &x) |
Post constraint on x. |
Simple test for distinct constraint with offsets.
Test::Int::Distinct::Offset::Offset | ( | const Gecode::IntSet & | d, |
Gecode::IntConLevel | icl | ||
) | [inline] |
Create and register test.
Definition at line 93 of file distinct.cpp.
Test::Int::Distinct::Offset::Offset | ( | int | min, |
int | max, | ||
Gecode::IntConLevel | icl | ||
) | [inline] |
Create and register test.
Definition at line 96 of file distinct.cpp.
virtual bool Test::Int::Distinct::Offset::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
Check whether x is solution.
Implements Test::Int::Test.
Definition at line 99 of file distinct.cpp.
virtual void Test::Int::Distinct::Offset::post | ( | Gecode::Space & | home, |
Gecode::IntVarArray & | x | ||
) | [inline, virtual] |