FRAMES NO FRAMES

Class IloAltResSet::Iterator

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

An instance of this class traverses the list of resources in a given instance of IloAltResSet.

See Also:

Constructor Summary
public Iterator(IloAltResSet set)
Method Summary
public IloBoolok() const
public IloResourceoperator*()
public Iterator &operator++()
Constructor Detail

Iterator

public Iterator(IloAltResSet set)

This constructor creates an iterator to traverse all the resources that are stored in a given instance of IloAltResSet.


Method Detail

ok

public IloBool ok() const

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


operator*

public IloResource operator*()

This operator returns the current instance of IloResource, 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 Iterator::ok returns IloFalse.


operator++

public Iterator & operator++()

This left-increment operator shifts the current position of the iterator to the next instance of IloResource.