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