Generated on Fri Oct 19 11:26:32 2018 for Gecode by doxygen 1.6.3

Test::Int::Distinct::Random Class Reference
[Distinct constraints]

Randomized test for distinct constraint. More...

List of all members.

Public Member Functions

 Random (int n, int min, int max, Gecode::IntPropLevel ipl)
 Create and register test.
virtual Assignmentassignment (void) const
 Create and register initial assignment.
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

Randomized test for distinct constraint.

Definition at line 167 of file distinct.cpp.


Constructor & Destructor Documentation

Test::Int::Distinct::Random::Random ( int  n,
int  min,
int  max,
Gecode::IntPropLevel  ipl 
) [inline]

Create and register test.

Definition at line 170 of file distinct.cpp.


Member Function Documentation

virtual Assignment* Test::Int::Distinct::Random::assignment ( void   )  const [inline, virtual]

Create and register initial assignment.

Reimplemented from Test::Int::Test.

Definition at line 175 of file distinct.cpp.

virtual bool Test::Int::Distinct::Random::solution ( const Assignment x  )  const [inline, virtual]

Check whether x is solution.

Implements Test::Int::Test.

Definition at line 179 of file distinct.cpp.

virtual void Test::Int::Distinct::Random::post ( Gecode::Space home,
Gecode::IntVarArray x 
) [inline, virtual]

Post constraint on x.

Implements Test::Int::Test.

Definition at line 187 of file distinct.cpp.


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