cMessageHeap::Iterator Class Reference

Walks along a cMessageHeap. More...

#include <cmessageheap.h>

List of all members.

Public Member Functions

 Iterator (const cMessageHeap &mh)
void init (const cMessageHeap &mh)
cMessageoperator() ()
cMessageoperator++ (int)
bool end () const

Detailed Description

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.


Member Function Documentation

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.


The documentation for this class was generated from the following file:
Generated on Tue Dec 2 11:16:29 2014 for OMNeT++ Simulation Library by  doxygen 1.6.3