OMNeT++ Simulation Library
6.0.3
|
#include <cmodule.h>
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.
Usage:
Public Member Functions | |
ChannelIterator (const cModule *module) | |
void | reset () |
cChannel * | operator* () const |
bool | end () const |
ChannelIterator & | operator++ () |
ChannelIterator | operator++ (int) |
|
inline |
Constructor. It takes the parent module on which to iterate.
void reset | ( | ) |
Reinitializes the iterator.
|
inline |
Returns a pointer to the current channel. Returns nullptr if the iterator has reached the end of the list.
|
inline |
Returns true if the iterator reached the end of the list.
|
inline |
Prefix increment operator (++it). Moves the iterator to the next channel. It has no effect if the iterator has reached either end of the list.
|
inline |
Postfix increment operator (it++). Moves the iterator to the next channel, and returns the iterator's previous state. It has no effect if the iterator has reached either end of the list.