Test::CpltSet::CpltSetTestSpace Class Reference
Inherits Gecode::Space.
Detailed Description
Space for executing CpltSet tests.Definition at line 66 of file cpltset.cc.
Public Member Functions | |
CpltSetTestSpace (int n, Gecode::IntSet &d, int i, bool r, CpltSetTest *t, const Options &o, bool log=true) | |
Create test space. | |
CpltSetTestSpace (bool share, CpltSetTestSpace &s) | |
Constructor for cloning s. | |
virtual Space * | copy (bool share) |
Copy space during cloning. | |
void | post (void) |
Post propagator. | |
bool | failed (void) |
Compute a fixpoint and check for failure. | |
void | rel (int i, Gecode::SetRelType srt, const Gecode::IntSet &is) |
Perform set tell operation on x[i]. | |
void | cardinality (int i, int cmin, int cmax) |
Perform cardinality tell operation on x[i]. | |
void | rel (int i, Gecode::IntRelType irt, int n) |
Perform integer tell operation on y[i]. | |
void | rel (bool sol) |
Perform Boolean tell on b. | |
void | assign (const Test::Set::SetAssignment &a) |
Assign all variables to values in a. | |
bool | assigned (void) const |
Test whether all variables are assigned. | |
void | removeFromLub (int v, int i, const Test::Set::SetAssignment &a) |
void | addToGlb (int v, int i, const Test::Set::SetAssignment &a) |
bool | fixprob (void) |
bool | prune (const Test::Set::SetAssignment &a) |
Public Attributes | |
Gecode::CpltSetVarArray | x |
Set variables to be tested. | |
Gecode::IntVarArray | y |
Int variables to be tested. | |
int | withInt |
How many integer variables are used by the test. | |
Gecode::BoolVar | b |
Control variable for reified propagators. | |
bool | reified |
Whether the test is for a reified propagator. | |
CpltSetTest * | test |
The test currently run. | |
const Options | opt |
The options. |
Constructor & Destructor Documentation
Test::CpltSet::CpltSetTestSpace::CpltSetTestSpace | ( | int | n, | |
Gecode::IntSet & | d, | |||
int | i, | |||
bool | r, | |||
CpltSetTest * | t, | |||
const Options & | o, | |||
bool | log = true | |||
) | [inline] |
Create test space.
Creates n set variables with domain d, i integer variables with domain d, and stores whether the test is for a reified propagator (r), the test itself (t) and the options (o).
Definition at line 93 of file cpltset.cc.
Test::CpltSet::CpltSetTestSpace::CpltSetTestSpace | ( | bool | share, | |
CpltSetTestSpace & | s | |||
) | [inline] |
Member Function Documentation
virtual Space* Test::CpltSet::CpltSetTestSpace::copy | ( | bool | share | ) | [inline, virtual] |
void Test::CpltSet::CpltSetTestSpace::post | ( | void | ) | [inline] |
bool Test::CpltSet::CpltSetTestSpace::failed | ( | void | ) | [inline] |
void Test::CpltSet::CpltSetTestSpace::rel | ( | int | i, | |
Gecode::SetRelType | srt, | |||
const Gecode::IntSet & | is | |||
) | [inline] |
void Test::CpltSet::CpltSetTestSpace::cardinality | ( | int | i, | |
int | cmin, | |||
int | cmax | |||
) | [inline] |
void Test::CpltSet::CpltSetTestSpace::rel | ( | int | i, | |
Gecode::IntRelType | irt, | |||
int | n | |||
) | [inline] |
void Test::CpltSet::CpltSetTestSpace::rel | ( | bool | sol | ) | [inline] |
void Test::CpltSet::CpltSetTestSpace::assign | ( | const Test::Set::SetAssignment & | a | ) | [inline] |
bool Test::CpltSet::CpltSetTestSpace::assigned | ( | void | ) | const [inline] |
void Test::CpltSet::CpltSetTestSpace::removeFromLub | ( | int | v, | |
int | i, | |||
const Test::Set::SetAssignment & | a | |||
) | [inline] |
Definition at line 222 of file cpltset.cc.
void Test::CpltSet::CpltSetTestSpace::addToGlb | ( | int | v, | |
int | i, | |||
const Test::Set::SetAssignment & | a | |||
) | [inline] |
Definition at line 234 of file cpltset.cc.
bool Test::CpltSet::CpltSetTestSpace::fixprob | ( | void | ) | [inline] |
Definition at line 246 of file cpltset.cc.
bool Test::CpltSet::CpltSetTestSpace::prune | ( | const Test::Set::SetAssignment & | a | ) | [inline] |
Definition at line 276 of file cpltset.cc.
Member Data Documentation
The documentation for this class was generated from the following file: