Generated on Thu Mar 22 10:40:01 2012 for Gecode by doxygen 1.6.3

Test::Int::GCC::VarSome Class Reference
[Counting constraints (global cardinality)]

Test for variable cardinality for some cardinality values More...

List of all members.

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 Assignmentassignment (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.

Detailed Description

Test for variable cardinality for some cardinality values

Definition at line 232 of file gcc.cpp.


Constructor & Destructor Documentation

Test::Int::GCC::VarSome::VarSome ( std::string  s,
int  n0,
int  min,
int  max,
Gecode::IntConLevel  icl 
) [inline]

Create and register test.

Definition at line 240 of file gcc.cpp.


Member Function Documentation

virtual bool Test::Int::GCC::VarSome::solution ( const Assignment x  )  const [inline, virtual]

Test whether x is solution

Implements Test::Int::Test.

Definition at line 251 of file gcc.cpp.

virtual Assignment* Test::Int::GCC::VarSome::assignment ( void   )  const [inline, virtual]

Create and register initial assignment.

Reimplemented from Test::Int::Test.

Definition at line 273 of file gcc.cpp.

virtual void Test::Int::GCC::VarSome::post ( Gecode::Space home,
Gecode::IntVarArray xy 
) [inline, virtual]

Post constraint on xy.

Implements Test::Int::Test.

Definition at line 280 of file gcc.cpp.


Member Data Documentation

int Test::Int::GCC::VarSome::n [protected]

Number of non-cardinality variables.

Definition at line 235 of file gcc.cpp.

const int Test::Int::GCC::VarSome::randomArity = 7 [static, protected]

Arity beyond which to use randomized tests.

Definition at line 237 of file gcc.cpp.


The documentation for this class was generated from the following file: