Test::Int::GCC::VarSome Class Reference
[Counting constraints (global cardinality)]
Inherits Test::Int::Test.
Detailed Description
Test for variable cardinality for some cardinality values.Definition at line 227 of file gcc.cc.
Public Member Functions | |
VarSome (Gecode::IntConLevel icl) | |
Create and register test. | |
virtual bool | solution (const Assignment &x) const |
Test whether x is solution. | |
virtual void | post (Gecode::Space *home, Gecode::IntVarArray &xy) |
Post constraint on xy. | |
Static Protected Attributes | |
static const int | n = 4 |
Number of non-cardinality variables. |
Constructor & Destructor Documentation
Test::Int::GCC::VarSome::VarSome | ( | Gecode::IntConLevel | icl | ) | [inline] |
Member Function Documentation
virtual bool Test::Int::GCC::VarSome::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
virtual void Test::Int::GCC::VarSome::post | ( | Gecode::Space * | home, | |
Gecode::IntVarArray & | xy | |||
) | [inline, virtual] |
Member Data Documentation
const int Test::Int::GCC::VarSome::n = 4 [static, protected] |
The documentation for this class was generated from the following file:
- test/int/gcc.cc (Revision: 6323)