FRAMES NO FRAMES

Class IloAltResConstraintIterator

Definition file: ilsched/iloresconstraint.h
Include file: <ilsched/iloscheduler.h>

An instance of this class traverses the set of alternative resource constraints defined on an environment.

Note
This class is provided for compatibility with the IloIterator<IloAltResConstraint> class of Scheduler 5.0. In the current version of the library the class IloAltResConstraint does not exist and therefore IloIterator<IloAltResConstraint> is not a well-formed iterator.

For more information, see IloIterator<IloResourceConstraint> in the Concert Reference Manual.

See Also:

Constructor Summary
public IloAltResConstraintIterator(const IloEnv env)
Method Summary
public IloBoolok()
public IloResourceConstraintoperator*()
public voidoperator++()
Constructor Detail

IloAltResConstraintIterator

public IloAltResConstraintIterator(const IloEnv env)

This constructor creates an iterator to traverse all the alternative resource constraints that are defined on the environment env.


Method Detail

ok

public IloBool ok()

This member function returns IloTrue if the current position of the iterator is a valid one. It returns IloFalse if all the alternative resource constraints have been scanned by the iterator.


operator*

public IloResourceConstraint operator*()

This operator returns the current instance of IloResourceConstraint, the one to which the invoking iterator points. This operator must not be called if the iterator does not point to a valid position, that is, one to which the member function IloAltResConstraintIterator::ok returns IloFalse.


operator++

public void operator++()

This left-increment operator shifts the current position of the iterator to the next instance of IloResourceConstraint with alternatives.