Generated on Mon Aug 25 11:35:54 2008 for Gecode by doxygen 1.5.6

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

Inherits Test::Int::Test.

List of all members.


Detailed Description

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

Simple test for distinct constraint.

Definition at line 54 of file distinct.cc.


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.

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.cc.

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.cc.


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.cc.

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.cc.


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