Test::Int::Distinct::Optional Class Reference
[Distinct constraints]
Simple test for optional distinct constraint. More...
Public Member Functions | |
Optional (const Gecode::IntArgs &d, Gecode::IntPropLevel ipl) | |
Create and register test. | |
virtual bool | solution (const Assignment &x) const |
Check whether x is solution. | |
virtual void | post (Gecode::Space &home, Gecode::IntVarArray &bx) |
Post constraint on bx. |
Detailed Description
Simple test for optional distinct constraint.
Definition at line 116 of file distinct.cpp.
Constructor & Destructor Documentation
Test::Int::Distinct::Optional::Optional | ( | const Gecode::IntArgs & | d, | |
Gecode::IntPropLevel | ipl | |||
) | [inline] |
Create and register test.
Definition at line 119 of file distinct.cpp.
Member Function Documentation
virtual bool Test::Int::Distinct::Optional::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
Check whether x is solution.
Implements Test::Int::Test.
Definition at line 123 of file distinct.cpp.
virtual void Test::Int::Distinct::Optional::post | ( | Gecode::Space & | home, | |
Gecode::IntVarArray & | bx | |||
) | [inline, virtual] |
The documentation for this class was generated from the following file:
- test/int/distinct.cpp (Revision: 14967)