Test::Int::InterDistance::DistanceAssignment Class Reference
Mix arbitrary assignments with sorted, separated values and shuffle them. More...
Public Member Functions | |
| DistanceAssignment (int n, const Gecode::IntSet &d, int p0, bool v, Gecode::Support::RandomGenerator &rand) | |
| virtual void | next (Gecode::Support::RandomGenerator &rand) |
| Move to next assignment. | |
| Public Member Functions inherited from Test::Int::RandomAssignment | |
| RandomAssignment (int n, const Gecode::IntSet &d, int a0, Gecode::Support::RandomGenerator &rand) | |
| Initialize for a assignments for n0 variables and values d0. | |
| virtual bool | has_more (void) const |
| Test whether all assignments have been iterated. | |
| virtual int | operator[] (int i) const |
| Return value for variable i. | |
| virtual | ~RandomAssignment (void) |
| Destructor. | |
| Public Member Functions inherited from Test::Int::Assignment | |
| Assignment (int n0, const Gecode::IntSet &d0) | |
| Initialize assignments for n0 variables and values d0. | |
| int | size (void) const |
| Return number of variables. | |
| virtual | ~Assignment (void) |
| Destructor. | |
Protected Attributes | |
| int | p |
| bool | variable |
| Protected Attributes inherited from Test::Int::RandomAssignment | |
| int * | vals |
| The current values for the variables. | |
| int | a |
| How many assignments still to be generated Generate new value according to domain. | |
| Protected Attributes inherited from Test::Int::Assignment | |
| int | n |
| Number of variables. | |
| Gecode::IntSet | d |
| Domain for each variable. | |
Additional Inherited Members | |
| Protected Member Functions inherited from Test::Int::RandomAssignment | |
| int | randval (Gecode::Support::RandomGenerator &rand) |
Detailed Description
Mix arbitrary assignments with sorted, separated values and shuffle them.
Definition at line 101 of file inter-distance.cpp.
Constructor & Destructor Documentation
◆ DistanceAssignment()
|
inline |
Definition at line 106 of file inter-distance.cpp.
Member Function Documentation
◆ next()
|
inlinevirtual |
Move to next assignment.
Reimplemented from Test::Int::RandomAssignment.
Definition at line 109 of file inter-distance.cpp.
Member Data Documentation
◆ p
|
protected |
Definition at line 103 of file inter-distance.cpp.
◆ variable
|
protected |
Definition at line 104 of file inter-distance.cpp.
The documentation for this class was generated from the following file:
- test/int/inter-distance.cpp
