Simple test for when.
More...
List of all members.
Public Member Functions |
| When (void) |
| Create and register test.
|
virtual bool | solution (const Assignment &x) const |
| Check whether x is solution.
|
virtual void | post (Gecode::Space &home, Gecode::IntVarArray &x) |
| Post when on x.
|
| Test (const std::string &s, int a, const Gecode::IntSet &d, bool r=false, Gecode::IntConLevel i=Gecode::ICL_DEF) |
| Constructor.
|
| Test (const std::string &s, int a, int min, int max, bool r=false, Gecode::IntConLevel i=Gecode::ICL_DEF) |
| Constructor.
|
virtual Assignment * | assignment (void) const |
| Create assignment.
|
virtual bool | ignore (const Assignment &) const |
| Whether to ignore assignment for reification.
|
virtual void | post (Gecode::Space &home, Gecode::IntVarArray &x, Gecode::BoolVar b) |
| Post reified constraint.
|
virtual bool | run (void) |
| Perform test.
|
| Base (const std::string &s) |
| Create and register test with name s.
|
const std::string & | name (void) const |
| Return name of test.
|
Base * | next (void) const |
| Return next test.
|
void | next (Base *n) |
| Set next test.
|
virtual | ~Base (void) |
| Destructor.
|
Detailed Description
Simple test for when.
Definition at line 118 of file exec.cpp.
Constructor & Destructor Documentation
Test::Int::Exec::When::When |
( |
void |
| ) |
|
|
inline |
Create and register test.
Definition at line 121 of file exec.cpp.
Member Function Documentation
virtual bool Test::Int::Exec::When::solution |
( |
const Assignment & |
x | ) |
const |
|
inlinevirtual |
Then-function to be executed.
Definition at line 131 of file exec.cpp.
Else-function to be executed.
Definition at line 135 of file exec.cpp.
The documentation for this class was generated from the following file: