Test::Int::Distinct::Distinct< useCount > Class Template Reference
[Distinct constraints]
Inherits Test::Int::Test.
Detailed Description
template<bool useCount>
class Test::Int::Distinct::Distinct< useCount >
Simple test for distinct constraint.
Definition at line 54 of file distinct.cc.
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. |
Constructor & Destructor Documentation
template<bool useCount>
Test::Int::Distinct::Distinct< useCount >::Distinct | ( | const Gecode::IntSet & | d0, | |
Gecode::IntConLevel | icl | |||
) | [inline] |
template<bool useCount>
Test::Int::Distinct::Distinct< useCount >::Distinct | ( | int | min, | |
int | max, | |||
Gecode::IntConLevel | icl | |||
) | [inline] |
Member Function Documentation
template<bool useCount>
virtual bool Test::Int::Distinct::Distinct< useCount >::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
template<bool useCount>
virtual void Test::Int::Distinct::Distinct< useCount >::post | ( | Gecode::Space * | home, | |
Gecode::IntVarArray & | x | |||
) | [inline, virtual] |
The documentation for this class was generated from the following file:
- test/int/distinct.cc (Revision: 6324)