Test::Set::SetTestSpace Class Reference
Inherits Gecode::Space.
Detailed Description
Space for executing set tests.Definition at line 125 of file set.cc.
Public Member Functions | |
| SetTestSpace (int n, Gecode::IntSet &d0, int i, bool r, SetTest *t, bool log=true) | |
| Create test space. | |
| SetTestSpace (bool share, SetTestSpace &s) | |
| Constructor for cloning s. | |
| virtual Gecode::Space * | copy (bool share) |
| Copy space during cloning. | |
| SetTestSpace * | cloneWithReflection (void) |
| Make a copy of the SetTestSpace using the reflection API. | |
| 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 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 SetAssignment &a) |
| Remove value v from the upper bound of x[i]. | |
| void | addToGlb (int v, int i, const SetAssignment &a) |
| Remove value v from the lower bound of x[i]. | |
| bool | fixprob (void) |
| Perform fixpoint computation. | |
| bool | prune (const SetAssignment &a) |
| Perform random pruning. | |
Public Attributes | |
| Gecode::IntSet | d |
| Initial domain. | |
| Gecode::SetVarArray | 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. | |
| SetTest * | test |
| The test currently run. | |
Constructor & Destructor Documentation
| Test::Set::SetTestSpace::SetTestSpace | ( | int | n, | |
| Gecode::IntSet & | d0, | |||
| int | i, | |||
| bool | r, | |||
| SetTest * | t, | |||
| bool | log = true | |||
| ) | [inline] |
| Test::Set::SetTestSpace::SetTestSpace | ( | bool | share, | |
| SetTestSpace & | s | |||
| ) | [inline] |
Member Function Documentation
| virtual Gecode::Space* Test::Set::SetTestSpace::copy | ( | bool | share | ) | [inline, virtual] |
| SetTestSpace* Test::Set::SetTestSpace::cloneWithReflection | ( | void | ) | [inline] |
| void Test::Set::SetTestSpace::post | ( | void | ) | [inline] |
| bool Test::Set::SetTestSpace::failed | ( | void | ) | [inline] |
| void Test::Set::SetTestSpace::rel | ( | int | i, | |
| Gecode::SetRelType | srt, | |||
| const Gecode::IntSet & | is | |||
| ) | [inline] |
| void Test::Set::SetTestSpace::cardinality | ( | int | i, | |
| int | cmin, | |||
| int | cmax | |||
| ) | [inline] |
| void Test::Set::SetTestSpace::rel | ( | int | i, | |
| Gecode::IntRelType | irt, | |||
| int | n | |||
| ) | [inline] |
| void Test::Set::SetTestSpace::rel | ( | bool | sol | ) | [inline] |
| void Test::Set::SetTestSpace::assign | ( | const SetAssignment & | a | ) | [inline] |
| bool Test::Set::SetTestSpace::assigned | ( | void | ) | const [inline] |
| void Test::Set::SetTestSpace::removeFromLub | ( | int | v, | |
| int | i, | |||
| const SetAssignment & | a | |||
| ) | [inline] |
| void Test::Set::SetTestSpace::addToGlb | ( | int | v, | |
| int | i, | |||
| const SetAssignment & | a | |||
| ) | [inline] |
| bool Test::Set::SetTestSpace::fixprob | ( | void | ) | [inline] |
| bool Test::Set::SetTestSpace::prune | ( | const SetAssignment & | a | ) | [inline] |
Member Data Documentation
The documentation for this class was generated from the following file:
