Test::Float::CpltAssignment Class Reference
[General test support]
Generate all assignments. More...
#include <float.hh>
Public Member Functions | |
| CpltAssignment (int n, const Gecode::FloatVal &d, Gecode::FloatNum s) | |
| Initialize assignments for n variables and values d with step s. | |
| 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 | ~CpltAssignment (void) |
| Destructor. | |
Protected Attributes | |
| Gecode::FloatVal * | dsv |
| Iterator for each variable. | |
| Gecode::FloatNum | step |
| Step for next assignment. | |
Detailed Description
Generate all assignments.
Definition at line 102 of file float.hh.
Constructor & Destructor Documentation
| Test::Float::CpltAssignment::CpltAssignment | ( | int | n, | |
| const Gecode::FloatVal & | d, | |||
| Gecode::FloatNum | s | |||
| ) | [inline] |
| Test::Float::CpltAssignment::~CpltAssignment | ( | void | ) | [inline, virtual] |
Member Function Documentation
| bool Test::Float::CpltAssignment::operator() | ( | void | ) | const [inline, virtual] |
Test whether all assignments have been iterated.
Implements Test::Float::Assignment.
| void Test::Float::CpltAssignment::operator++ | ( | void | ) | [virtual] |
Move to next assignment.
Implements Test::Float::Assignment.
| Gecode::FloatVal Test::Float::CpltAssignment::operator[] | ( | int | i | ) | const [inline, virtual] |
Return value for variable i.
Implements Test::Float::Assignment.
| void Test::Float::CpltAssignment::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::CpltAssignment::dsv [protected] |
Gecode::FloatNum Test::Float::CpltAssignment::step [protected] |
The documentation for this class was generated from the following files:
