Test::Int::Distinct::Offset Class Reference
[Distinct constraints]
Inherits Test::Int::Test.
Detailed Description
Simple test for distinct constraint with offsets.Definition at line 90 of file distinct.cc.
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. |
Constructor & Destructor Documentation
Test::Int::Distinct::Offset::Offset | ( | const Gecode::IntSet & | d, | |
Gecode::IntConLevel | icl | |||
) | [inline] |
Test::Int::Distinct::Offset::Offset | ( | int | min, | |
int | max, | |||
Gecode::IntConLevel | icl | |||
) | [inline] |
Member Function Documentation
virtual bool Test::Int::Distinct::Offset::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
virtual void Test::Int::Distinct::Offset::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)