Generate random selection of assignments.
More...
#include <int.hh>
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.
|
int | n |
| Number of variables.
|
Gecode::IntSet | d |
| Domain for each variable.
|
Detailed Description
Generate random selection of assignments.
Definition at line 100 of file int.hh.
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.hpp.
Test::Int::RandomAssignment::~RandomAssignment |
( |
void |
| ) |
|
|
inlinevirtual |
Destructor.
Definition at line 108 of file int.hpp.
Member Function Documentation
int Test::Int::RandomAssignment::randval |
( |
void |
| ) |
|
|
inlineprotected |
bool Test::Int::RandomAssignment::operator() |
( |
void |
| ) |
const |
|
inlinevirtual |
void Test::Int::RandomAssignment::operator++ |
( |
void |
| ) |
|
|
virtual |
int Test::Int::RandomAssignment::operator[] |
( |
int |
i | ) |
const |
|
inlinevirtual |
Member Data Documentation
int* Test::Int::RandomAssignment::vals |
|
protected |
The current values for the variables.
Definition at line 102 of file int.hh.
int Test::Int::RandomAssignment::a |
|
protected |
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: