Test::Int::Cumulatives::CumulativeAssignment Class Reference
[Cumnulatives scheduling constraint]
Class for generating reasonable assignments. More...
Public Member Functions | |
CumulativeAssignment (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 | ~CumulativeAssignment (void) |
Destructor. |
Detailed Description
Class for generating reasonable assignments.
Definition at line 94 of file cumulatives.cpp.
Constructor & Destructor Documentation
Test::Int::Cumulatives::CumulativeAssignment::CumulativeAssignment | ( | int | n, | |
const Gecode::IntSet & | d | |||
) | [inline] |
Initialize assignments for n0 variables and values d0.
Definition at line 103 of file cumulatives.cpp.
virtual Test::Int::Cumulatives::CumulativeAssignment::~CumulativeAssignment | ( | void | ) | [inline, virtual] |
Destructor.
Definition at line 127 of file cumulatives.cpp.
Member Function Documentation
virtual bool Test::Int::Cumulatives::CumulativeAssignment::operator() | ( | void | ) | const [inline, virtual] |
Test whether all assignments have been iterated
Implements Test::Int::Assignment.
Definition at line 112 of file cumulatives.cpp.
virtual void Test::Int::Cumulatives::CumulativeAssignment::operator++ | ( | void | ) | [inline, virtual] |
Move to next assignment.
Implements Test::Int::Assignment.
Definition at line 116 of file cumulatives.cpp.
virtual int Test::Int::Cumulatives::CumulativeAssignment::operator[] | ( | int | i | ) | const [inline, virtual] |
Return value for variable i.
Implements Test::Int::Assignment.
Definition at line 122 of file cumulatives.cpp.
The documentation for this class was generated from the following file:
- test/int/cumulatives.cpp (Revision: 13061)