
Generate random selection of assignments. More...
#include <int.hh>
Public Member Functions | |
| RandomAssignment (int n, const Gecode::IntSet &d, int a) | |
| Initialize for a assignments for n0 variables and values d0. More... | |
| virtual bool | operator() (void) const |
| Test whether all assignments have been iterated. More... | |
| virtual void | operator++ (void) |
| Move to next assignment. More... | |
| virtual int | operator[] (int i) const |
| Return value for variable i. More... | |
| virtual | ~RandomAssignment (void) |
| Destructor. More... | |
Public Member Functions inherited from Test::Int::Assignment | |
| Assignment (int n0, const Gecode::IntSet &d0) | |
| Initialize assignments for n0 variables and values d0. More... | |
| int | size (void) const |
| Return number of variables. More... | |
| virtual | ~Assignment (void) |
| Destructor. More... | |
Protected Member Functions | |
| int | randval (void) |
Protected Attributes | |
| int * | vals |
| The current values for the variables. More... | |
| int | a |
| How many assigments still to be generated Generate new value according to domain. More... | |
Protected Attributes inherited from Test::Int::Assignment | |
| int | n |
| Number of variables. More... | |
| Gecode::IntSet | d |
| Domain for each variable. More... | |
|
inline |
|
inlinevirtual |
|
inlineprotected |
|
inlinevirtual |
Test whether all assignments have been iterated.
Implements Test::Int::Assignment.
|
virtual |
|
inlinevirtual |
Return value for variable i.
Implements Test::Int::Assignment.
|
protected |
|
protected |