
Base class for assignments More...
#include <float.hh>
Public Member Functions | |
| Assignment (int n0, const Gecode::FloatVal &d0) | |
| Initialize assignments for n0 variables and values d0. More... | |
| virtual bool | operator() (void) const =0 |
| Test whether all assignments have been iterated. More... | |
| virtual void | operator++ (void)=0 |
| Move to next assignment. More... | |
| virtual Gecode::FloatVal | operator[] (int i) const =0 |
| Return value for variable i. More... | |
| virtual void | set (int i, const Gecode::FloatVal &val)=0 |
| Set assignment to value val for variable i. More... | |
| int | size (void) const |
| Return number of variables. More... | |
| virtual | ~Assignment (void) |
| Destructor. More... | |
Protected Attributes | |
| int | n |
| Number of variables. More... | |
| Gecode::FloatVal | d |
| Domain for each variable. More... | |
|
inline |
|
inlinevirtual |
|
pure virtual |
Test whether all assignments have been iterated.
Implemented in Test::Float::RandomAssignment, Test::Float::ExtAssignment, and Test::Float::CpltAssignment.
|
pure virtual |
Move to next assignment.
Implemented in Test::Float::RandomAssignment, Test::Float::ExtAssignment, and Test::Float::CpltAssignment.
|
pure virtual |
Return value for variable i.
Implemented in Test::Float::RandomAssignment, Test::Float::ExtAssignment, and Test::Float::CpltAssignment.
|
pure virtual |
Set assignment to value val for variable i.
Implemented in Test::Float::RandomAssignment, Test::Float::ExtAssignment, and Test::Float::CpltAssignment.
|
inline |
|
protected |
|
protected |