Test::Int::RandomAssignment Class Reference
[General test support]
#include <int.hh>
Inherits Test::Int::Assignment.
List of all members.
Detailed Description
Generate random selection of assignments.
Definition at line 100 of file int.hh.
|
Public Member Functions |
| RandomAssignment (int n, const Gecode::IntSet &d, int a) |
| Initialize for a assignments for n0 variables and values d0.
|
virtual bool | operator() (void) const |
| Test whether all assignments have been iterated.
|
virtual void | operator++ (void) |
| Move to next assignment.
|
virtual int | operator[] (int i) const |
| Return value for variable i.
|
virtual | ~RandomAssignment (void) |
| Destructor.
|
Protected Member Functions |
int | randval (void) |
Protected Attributes |
int * | vals |
| The current values for the variables.
|
int | a |
| How many assigments still to be generated Generate new value according to domain.
|
Constructor & Destructor Documentation
Test::Int::RandomAssignment::RandomAssignment |
( |
int |
n, |
|
|
const Gecode::IntSet & |
d, |
|
|
int |
a | |
|
) |
| | [inline] |
Initialize for a assignments for n0 variables and values d0.
Definition at line 92 of file int.icc.
Test::Int::RandomAssignment::~RandomAssignment |
( |
void |
|
) |
[inline, virtual] |
Destructor.
Definition at line 108 of file int.icc.
Member Function Documentation
int Test::Int::RandomAssignment::randval |
( |
void |
|
) |
[inline, protected] |
bool Test::Int::RandomAssignment::operator() |
( |
void |
|
) |
const [inline, virtual] |
void Test::Int::RandomAssignment::operator++ |
( |
void |
|
) |
[virtual] |
int Test::Int::RandomAssignment::operator[] |
( |
int |
i |
) |
const [inline, virtual] |
Member Data Documentation
The current values for the variables.
Definition at line 102 of file int.hh.
How many assigments still to be generated Generate new value according to domain.
Definition at line 103 of file int.hh.
The documentation for this class was generated from the following files: