Walks along the channels inside a module, that is, the channels among the module and its submodules. More...
#include <cmodule.h>
Public Member Functions | |
| ChannelIterator (const cModule *parentmodule) | |
| void | init (const cModule *parentmodule) |
| cChannel * | operator() () const |
| bool | end () const |
| cChannel * | operator++ (int) |
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.
| cModule::ChannelIterator::ChannelIterator | ( | const cModule * | parentmodule | ) | [inline] |
Constructor.
The iterator will walk on the module passed as argument.
| 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.
1.6.3