
Test for variable cardinality for some cardinality values More...
Public Member Functions | |
| VarSome (std::string s, int n0, int min, int max, Gecode::IntConLevel icl) | |
| Create and register test. | |
| virtual bool | solution (const Assignment &x) const |
| Test whether x is solution | |
| virtual Assignment * | assignment (void) const |
| Create and register initial assignment. | |
| virtual void | post (Gecode::Space &home, Gecode::IntVarArray &xy) |
| Post constraint on xy. | |
Protected Attributes | |
| int | n |
| Number of non-cardinality variables. | |
Static Protected Attributes | |
| static const int | randomArity = 7 |
| Arity beyond which to use randomized tests. | |
| Test::Int::GCC::VarSome::VarSome | ( | std::string | s, |
| int | n0, | ||
| int | min, | ||
| int | max, | ||
| Gecode::IntConLevel | icl | ||
| ) | [inline] |
| virtual bool Test::Int::GCC::VarSome::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
| virtual Assignment* Test::Int::GCC::VarSome::assignment | ( | void | ) | const [inline, virtual] |
Create and register initial assignment.
Reimplemented from Test::Int::Test.
| virtual void Test::Int::GCC::VarSome::post | ( | Gecode::Space & | home, |
| Gecode::IntVarArray & | xy | ||
| ) | [inline, virtual] |
int Test::Int::GCC::VarSome::n [protected] |
const int Test::Int::GCC::VarSome::randomArity = 7 [static, protected] |