Overview | Group | Tree | Graph | Index | Concepts |
An instance of the class IlcPossibleAltResIterator
is an
iterator that traverses the possible resources (those which could be
selected) for an instance of IlcAltResConstraint
.
If a resource has been selected, then there is one and only one possible resource among those managed by the constraint.
To make the search for a scheduling solution efficient, it is often a
good idea to select one resource for the activity for which an instance of
IlcAltResSet
is defined before you schedule
it.
See Also:
IlcAltResConstraint, IlcResource
Constructor and Destructor Summary | |
---|---|
public | IlcPossibleAltResIterator(IlcAltResConstraint ct) |
Method Summary | |
---|---|
public IlcBool | ok() const |
public IlcResource | operator*() const |
public IlcPossibleAltResIterator & | operator++() |
Constructor and Destructor Detail |
---|
This constructor creates a new instance of
IlcPossibleAltResIterator
that traverses the set of possible
resources which belong to ct
.
Method Detail |
---|
This member function returns IlcTrue
if there is a current
possible resource and the invoking iterator points to it. Otherwise, it
returns IlcFalse
.
This operator returns the current possible resource to which the invoking iterator points. If the iterator is set past the end position, then this operator returns an empty handle.
This operator shifts the iterator to the next possible resource.