Test::Int::MiniModelSet::SetExprConst Class Reference
[Minimal modelling constraints (%Set constraints)]
Test set expressions with constant result More...
Public Member Functions | |
| SetExprConst (const SetInstr *bis0, const std::string &s, Gecode::SetRelType srt0, int c0) | |
| Create and register test. | |
| virtual bool | solution (const Assignment &x) const |
| Test whether x is solution | |
| virtual void | post (Gecode::Space &home, Gecode::IntVarArray &x) |
| Post constraint on x. | |
| virtual void | post (Gecode::Space &home, Gecode::IntVarArray &x, Gecode::Reify r) |
| Post reified constraint on x. | |
Protected Attributes | |
| const SetInstr * | bis |
| Set instruction sequence | |
| int | c |
| Result of expression. | |
| Gecode::SetRelType | srt |
| Set relation | |
Detailed Description
Test set expressions with constant result
Definition at line 117 of file mm-set.cpp.
Constructor & Destructor Documentation
| Test::Int::MiniModelSet::SetExprConst::SetExprConst | ( | const SetInstr * | bis0, | |
| const std::string & | s, | |||
| Gecode::SetRelType | srt0, | |||
| int | c0 | |||
| ) | [inline] |
Create and register test.
Definition at line 127 of file mm-set.cpp.
Member Function Documentation
| virtual bool Test::Int::MiniModelSet::SetExprConst::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
| virtual void Test::Int::MiniModelSet::SetExprConst::post | ( | Gecode::Space & | home, | |
| Gecode::IntVarArray & | x | |||
| ) | [inline, virtual] |
| virtual void Test::Int::MiniModelSet::SetExprConst::post | ( | Gecode::Space & | home, | |
| Gecode::IntVarArray & | x, | |||
| Gecode::Reify | r | |||
| ) | [inline, virtual] |
Post reified constraint on x.
Reimplemented from Test::Int::Test.
Definition at line 173 of file mm-set.cpp.
Member Data Documentation
const SetInstr* Test::Int::MiniModelSet::SetExprConst::bis [protected] |
Set instruction sequence
Definition at line 120 of file mm-set.cpp.
int Test::Int::MiniModelSet::SetExprConst::c [protected] |
Result of expression.
Definition at line 122 of file mm-set.cpp.
Set relation
Definition at line 124 of file mm-set.cpp.
The documentation for this class was generated from the following file:
- test/set/mm-set.cpp
