FRAMES NO FRAMES

Class IlcAltResSetIterator

Definition file: ilsched/altresh.h
Include file: <ilsched/ilsched.h>

An instance of the class IlcAltResSetIterator is an iterator that traverses a set of sets of alternative resources. For example, you might need an iterator to traverse all the instances of IlcAltResSet managed by a particular schedule; or you might be interested in traversing all the instances of IlcAltResSet to which a given resource belongs.

See Also:

Constructor and Destructor Summary
public IlcAltResSetIterator(IlcResource resource)
public IlcAltResSetIterator(const IlcSchedule schedule)
Method Summary
public IlcBoolok() const
public IlcAltResSetoperator*() const
public IlcAltResSetIterator &operator++()
Constructor and Destructor Detail

IlcAltResSetIterator

public IlcAltResSetIterator(IlcResource resource)

This constructor creates a new instance of IlcAltResSetIterator that traverses all the alternative resource sets that have resource as an element.


IlcAltResSetIterator

public IlcAltResSetIterator(const IlcSchedule schedule)

This constructor creates a new instance of IlcAltResSetIterator that traverses all the instances of IlcAltResSet that are managed by schedule.


Method Detail

ok

public IlcBool ok() const

This member function returns IlcTrue if there is a current instance of IlcAltResSet and the invoking iterator points to it. Otherwise, it returns IlcFalse.


operator*

public IlcAltResSet operator*() const

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

This operator shifts the iterator to the next instance of IlcAltResSet.