INET Framework for OMNeT++/OMNEST
|
Provides method templates to find omnet modules. More...
#include <FindModule.h>
Static Public Member Functions | |
static T | findSubModule (const cModule *const top) |
Returns a pointer to a sub module of the passed module with the type of this template. More... | |
static T | findGlobalModule () |
Returns a pointer to the module with the type of this template. More... | |
static cModule * | findHost (cModule *m) |
Returns a pointer to the host module of the passed module. More... | |
static cModule * | findNetwork (cModule *m) |
static const cModule * | findHost (const cModule *const m) |
static const cModule * | findNetwork (const cModule *const m) |
Provides method templates to find omnet modules.
|
inlinestatic |
Returns a pointer to the module with the type of this template.
Returns nullptr if no module of this type could be found.
|
inlinestatic |
Returns a pointer to the host module of the passed module.
Assumes that every host module is a direct sub module of the simulation.
Referenced by inet::FindModule< T >::findNetwork(), and inet::LMacLayer::handleSelfMessage().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Returns a pointer to a sub module of the passed module with the type of this template.
Returns nullptr if no matching submodule could be found.
Referenced by inet::FindModule< T >::findGlobalModule(), and inet::AccessModuleWrap< T >::get().