Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members  

cMessageHeapIterator Class Reference

#include <cmsgheap.h>

List of all members.

Public Methods

 cMessageHeapIterator (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.


Constructor & Destructor Documentation

cMessageHeapIterator::cMessageHeapIterator ( const cMessageHeap & mh ) [inline]
 

Constructor.


Member Function Documentation

bool cMessageHeapIterator::end ( ) const [inline]
 

Returns true if the iterator has reached the end of the list.

void cMessageHeapIterator::init ( const cMessageHeap & mh ) [inline]
 

Reinitializes the iterator object.

cMessage * cMessageHeapIterator::operator() ( ) [inline]
 

Returns the current object.

cMessage * cMessageHeapIterator::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 at Sat May 4 15:45:50 2002 for OMNeT++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001