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