#include <cmsgheap.h>
Note that objects in cMessageHeap are not necessarily iterated ordered by arrival time. Use msgheap->sort() if necessary before using the iterator.
Public Member Functions | |
| Iterator (const cMessageHeap &mh) | |
| void | init (const cMessageHeap &mh) |
| cMessage * | operator() () |
| cMessage * | operator++ (int) |
| bool | end () const |
|
|
Constructor.
|
|
|
Returns true if the iterator has reached the end of the list.
|
|
|
Reinitializes the iterator object.
|
|
|
Returns the current object.
|
|
|
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. |
1.4.1