Simple test for distinct constraint. More...
Public Member Functions | |
Distinct (const Gecode::IntSet &d0, Gecode::IntConLevel icl) | |
Create and register test. | |
Distinct (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.
Definition at line 54 of file distinct.cpp.
Test::Int::Distinct::Distinct< useCount >::Distinct | ( | const Gecode::IntSet & | d0, |
Gecode::IntConLevel | icl | ||
) | [inline] |
Create and register test.
Definition at line 57 of file distinct.cpp.
Test::Int::Distinct::Distinct< useCount >::Distinct | ( | int | min, |
int | max, | ||
Gecode::IntConLevel | icl | ||
) | [inline] |
Create and register test.
Definition at line 61 of file distinct.cpp.
virtual bool Test::Int::Distinct::Distinct< useCount >::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
Check whether x is solution.
Implements Test::Int::Test.
Definition at line 65 of file distinct.cpp.
virtual void Test::Int::Distinct::Distinct< useCount >::post | ( | Gecode::Space & | home, |
Gecode::IntVarArray & | x | ||
) | [inline, virtual] |