Test::Set::Distinct::AtmostOne Class Reference
[Distinctness constraints]
Inherits Test::Set::SetTest.
Detailed Description
Test for the atmostone propagator.Definition at line 57 of file distinct.cc.
Public Member Functions | |
AtmostOne (const char *t) | |
Create and register test. | |
virtual bool | solution (const SetAssignment &x) const |
Test whether x is solution. | |
virtual void | post (Space *home, SetVarArray &x, IntVarArray &) |
Post constraint on x. |
Constructor & Destructor Documentation
Test::Set::Distinct::AtmostOne::AtmostOne | ( | const char * | t | ) | [inline] |
Member Function Documentation
virtual bool Test::Set::Distinct::AtmostOne::solution | ( | const SetAssignment & | x | ) | const [inline, virtual] |
Test whether x is solution.
Implements Test::Set::SetTest.
Definition at line 63 of file distinct.cc.
virtual void Test::Set::Distinct::AtmostOne::post | ( | Space * | home, | |
SetVarArray & | x, | |||
IntVarArray & | ||||
) | [inline, virtual] |
The documentation for this class was generated from the following file:
- test/set/distinct.cc (Revision: 5260)