OMNeT++ Simulation Library
5.6.1
|
#include <cmodule.h>
Iterates through the submodules of a compound module.
Usage:
Public Member Functions | |
SubmoduleIterator (const cModule *m) | |
void | init (const cModule *m) |
cModule * | operator* () const |
_OPPDEPRECATED cModule * | operator() () const |
bool | end () const |
SubmoduleIterator & | operator++ () |
SubmoduleIterator | operator++ (int) |
SubmoduleIterator & | operator-- () |
SubmoduleIterator | operator-- (int) |
|
inline |
Constructor. It takes the parent module on which to iterate.
|
inline |
Reinitializes the iterator.
|
inline |
Returns a pointer to the current module. Returns nullptr if the iterator has reached the end of the list.
|
inline |
DEPRECATED. Use the * operator to access the object the iterator is at.
|
inline |
Returns true if the iterator reached the end of the list.
|
inline |
Prefix increment operator (++it). Moves the iterator to the next submodule. 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 submodule, and returns the iterator's previous state. It has no effect if the iterator has reached either end of the list.
|
inline |
Prefix decrement operator (–it). Moves the iterator to the previous submodule. It has no effect if the iterator has reached either end of the list.
|
inline |
Postfix decrement operator (it–). Moves the iterator to the previous submodule, and returns the iterator's previous state. It has no effect if the iterator has reached either end of the list.