FRAMES NO FRAMES

Class IloCalendar::ShiftObjectIterator

Definition file: ilsched/ilocalendar.h

An instance of this class traverses the list of shift objects that have been added to the corresponding IloCalendar.

Constructor Summary
public ShiftObjectIterator(IloCalendar calendar)
Method Summary
public IlcBoolok() const
public IloShiftObjectoperator*() const
public ShiftObjectIterator &operator++()
Constructor Detail

ShiftObjectIterator

public ShiftObjectIterator(IloCalendar calendar)

This constructor creates an iterator to traverse the list of shift objects that have been added to calendar.


Method Detail

ok

public IlcBool ok() const

This member function returns IloTrue if the current position of the iterator is a valid one. It returns IloFalse if the list of shift objects has been completely scanned by the iterator.


operator*

public IloShiftObject operator*() const

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

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