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

Test::Int::Distinct::Distinct< useCount > Class Template Reference
[Distinct constraints]

Simple test for distinct constraint. More...

List of all members.

Public Member Functions

 Distinct (const Gecode::IntSet &d0, Gecode::IntConLevel icl)
 Create and register test.
 Distinct (int min, int max, Gecode::IntConLevel icl)
 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 constraint on x.

Detailed Description

template<bool useCount>
class Test::Int::Distinct::Distinct< useCount >

Simple test for distinct constraint.

Definition at line 54 of file distinct.cpp.


Constructor & Destructor Documentation

template<bool useCount>
Test::Int::Distinct::Distinct< useCount >::Distinct ( const Gecode::IntSet d0,
Gecode::IntConLevel  icl 
) [inline]

Create and register test.

Definition at line 59 of file distinct.cpp.

template<bool useCount>
Test::Int::Distinct::Distinct< useCount >::Distinct ( int  min,
int  max,
Gecode::IntConLevel  icl 
) [inline]

Create and register test.

Definition at line 63 of file distinct.cpp.


Member Function Documentation

template<bool useCount>
virtual bool Test::Int::Distinct::Distinct< useCount >::solution ( const Assignment x  )  const [inline, virtual]

Check whether x is solution.

Implements Test::Int::Test.

Definition at line 67 of file distinct.cpp.

template<bool useCount>
virtual void Test::Int::Distinct::Distinct< useCount >::post ( Gecode::Space home,
Gecode::IntVarArray x 
) [inline, virtual]

Post constraint on x.

Implements Test::Int::Test.

Definition at line 75 of file distinct.cpp.


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