FRAMES NO FRAMES

Class IloSchedulerSolution::ResourceIterator

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

An instance of this class traverses the list of IloResource instances that have been stored in an IloSchedulerSolution.

See Also:

Constructor Summary
public ResourceIterator(IloSchedulerSolution sol)
Method Summary
public IloBoolok() const
public IloResourceoperator*()
public ResourceIterator &operator++()
Constructor Detail

ResourceIterator

public ResourceIterator(IloSchedulerSolution sol)

This constructor creates an iterator to traverse all the resources that are stored in the given scheduler solution.


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. If the iterator is set past the end position, then this operator returns an empty handle.


operator++

public ResourceIterator & operator++()

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