Generated on Sun Feb 17 15:25:45 2019 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::IntPropLevel ipl, int n=6)
Create and register test.
Distinct (int min, int max, Gecode::IntPropLevel ipl)
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 51 of file distinct.cpp.

## Constructor & Destructor Documentation

template<bool useCount>
 Test::Int::Distinct::Distinct< useCount >::Distinct ( const Gecode::IntSet & d0, Gecode::IntPropLevel ipl, int n = `6` ) ` [inline]`

Create and register test.

Definition at line 54 of file distinct.cpp.

template<bool useCount>
 Test::Int::Distinct::Distinct< useCount >::Distinct ( int min, int max, Gecode::IntPropLevel ipl ) ` [inline]`

Create and register test.

Definition at line 59 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 63 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 71 of file distinct.cpp.

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