cModule::ChannelIterator Class Reference

Walks along the channels inside a module, that is, the channels among the module and its submodules. More...

#include <cmodule.h>

List of all members.

Public Member Functions

 ChannelIterator (const cModule *parentmodule)
void init (const cModule *parentmodule)
cChanneloperator() () const
bool end () const
cChanneloperator++ (int)

Detailed Description

Walks along the channels inside a module, that is, the channels among the module and its submodules.

This is the same set of channels whose getParentModule() would return the iterated module.


Constructor & Destructor Documentation

cModule::ChannelIterator::ChannelIterator ( const cModule parentmodule  )  [inline]

Constructor.

The iterator will walk on the module passed as argument.


Member Function Documentation

cChannel* cModule::ChannelIterator::operator++ ( int   )  [inline]

Returns the current object, then moves the iterator to the next item.

If the iterator has reached end, nothing happens; you have to call init() again to restart iterating. If modules, gates or channels are added or removed during interation, the behaviour is undefined.


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