ChannelIterator Class Reference¶
|
API
|
Public Member Functions | |
| ChannelIterator (const cModule *module) | |
| void | reset () |
| cChannel * | operator* () const |
| bool | end () const |
| ChannelIterator & | operator++ () |
| ChannelIterator | operator++ (int) |
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.
Usage:
Constructor & Destructor Documentation
◆ ChannelIterator()
|
inline |
Constructor. It takes the parent module on which to iterate.
References cModule::cModule(), and reset().
Referenced by operator++(), and operator++().
Member Function Documentation
◆ reset()
| void reset | ( | ) |
Reinitializes the iterator.
Referenced by ChannelIterator().
◆ operator*()
|
inline |
Returns a pointer to the current channel. Returns nullptr if the iterator has reached the end of the list.
◆ end()
|
inline |
Returns true if the iterator reached the end of the list.
◆ operator++() [1/2]
|
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.
References ChannelIterator().
◆ operator++() [2/2]
|
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.
References ChannelIterator().
Generated on for API by