Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members  

cMessageHeap::Iterator Class Reference

#include <cmsgheap.h>

List of all members.

Public Methods

 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.


Constructor & Destructor Documentation

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

Constructor.


Member Function Documentation

bool cMessageHeap::Iterator::end ( ) const [inline]
 

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

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

Reinitializes the iterator object.

cMessage * cMessageHeap::Iterator::operator() ( ) [inline]
 

Returns the current object.

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 at Mon Jun 16 23:37:33 2003 for OMNeT++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001