FRAMES NO FRAMES

Class IloResourceConstraintIterator

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

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

Note
This class is provided for compatibility with the IloIterator<IloResourceConstraint> class of Scheduler 5.0 and Scheduler 5.1. In the current version of the library, IloIterator<IloResourceConstraint> traverses all resource constraints (whether or not they are defined on an alternative resource set) defined on an environment.

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

See Also:

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

IloResourceConstraintIterator

public IloResourceConstraintIterator(const IloEnv env)

This constructor creates an iterator to traverse all the non-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 non-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 IloResourceConstraintIterator::ok returns IloFalse.


operator++

public void operator++()

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