Sequence constraints
[Testing finite sets]
Classes | |
class | Test::Set::Sequence::Sequence |
Test for sequence constraint. More... | |
class | Test::Set::Sequence::SeqU |
Test for sequential-union constraint. More... | |
Functions | |
virtual bool | Test::Set::Sequence::Sequence::solution (const SetAssignment &x) const |
Test whether x is solution. | |
virtual void | Test::Set::Sequence::Sequence::post (Space *home, SetVarArray &x, IntVarArray &) |
Post constraint on x. | |
Test::Set::Sequence::SeqU::SeqU (int n0) | |
Create and register test. | |
virtual bool | Test::Set::Sequence::SeqU::solution (const SetAssignment &x) const |
Test whether x is solution. | |
virtual void | Test::Set::Sequence::SeqU::post (Space *home, SetVarArray &x, IntVarArray &) |
Post constraint on x. | |
Variables | |
Sequence | Test::Set::Sequence::_sequence ("Sequence::Sequence") |
SeqU | Test::Set::Sequence::_sequ0 (0) |
SeqU | Test::Set::Sequence::_sequ1 (1) |
SeqU | Test::Set::Sequence::_sequ3 (3) |
Function Documentation
virtual bool Test::Set::Sequence::Sequence::solution | ( | const SetAssignment & | x | ) | const [inline, virtual, inherited] |
Test whether x is solution.
Implements Test::Set::SetTest.
Definition at line 62 of file sequence.cc.
virtual void Test::Set::Sequence::Sequence::post | ( | Space * | home, | |
SetVarArray & | x, | |||
IntVarArray & | ||||
) | [inline, virtual, inherited] |
Test::Set::Sequence::SeqU::SeqU | ( | int | n0 | ) | [inline, inherited] |
virtual bool Test::Set::Sequence::SeqU::solution | ( | const SetAssignment & | x | ) | const [inline, virtual, inherited] |
Test whether x is solution.
Implements Test::Set::SetTest.
Definition at line 92 of file sequence.cc.
virtual void Test::Set::Sequence::SeqU::post | ( | Space * | home, | |
SetVarArray & | x, | |||
IntVarArray & | ||||
) | [inline, virtual, inherited] |
Variable Documentation
Sequence Test::Set::Sequence::_sequence("Sequence::Sequence") |
SeqU Test::Set::Sequence::_sequ0(0) |
SeqU Test::Set::Sequence::_sequ1(1) |
SeqU Test::Set::Sequence::_sequ3(3) |