FRAMES NO FRAMES

Class IloSchedulerSolution::ActivityIterator

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

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

See Also:

Constructor Summary
public ActivityIterator(IloSchedulerSolution sol)
Method Summary
public IloBoolok() const
public IloActivityoperator*()
public ActivityIterator &operator++()
Constructor Detail

ActivityIterator

public ActivityIterator(IloSchedulerSolution sol)

This constructor creates an iterator to traverse all the activities 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 activities have been scanned by the iterator.


operator*

public IloActivity operator*()

This operator returns the current instance of IloActivity, 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 ActivityIterator & operator++()

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