FRAMES NO FRAMES

Class IlcPossibleAltResIterator

Definition file: ilsched/altresh.h
Include file: <ilsched/ilsched.h>

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:

Constructor and Destructor Summary
public IlcPossibleAltResIterator(IlcAltResConstraint ct)
Method Summary
public IlcBoolok() const
public IlcResourceoperator*() const
public IlcPossibleAltResIterator &operator++()
Constructor and Destructor Detail

IlcPossibleAltResIterator

public IlcPossibleAltResIterator(IlcAltResConstraint ct)

This constructor creates a new instance of IlcPossibleAltResIterator that traverses the set of possible resources which belong to ct.


Method Detail

ok

public IlcBool ok() const

This member function returns IlcTrue if there is a current possible resource and the invoking iterator points to it. Otherwise, it returns IlcFalse.


operator*

public IlcResource operator*() const

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.


operator++

public IlcPossibleAltResIterator & operator++()

This operator shifts the iterator to the next possible resource.