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