Walks along a cMessageHeap. More...
#include <cmessageheap.h>
Public Member Functions | |
Iterator (const cMessageHeap &mh) | |
void | init (const cMessageHeap &mh) |
cMessage * | operator() () |
cMessage * | operator++ (int) |
bool | end () const |
Walks along a cMessageHeap.
Note that objects in cMessageHeap are not necessarily iterated ordered by arrival time. Use msgheap->sort() if necessary before using the iterator.
cMessage* cMessageHeap::Iterator::operator++ | ( | int | ) | [inline] |
Returns the current object, then moves the iterator to the next item.
If the iterator has reached the end of the list, NULL is returned.