|
INET Framework for OMNeT++/OMNEST
|
This template class implements a module reference that is parameterized by a string module parameter of the referencing module. More...
#include <ModuleRefByPar.h>
Public Member Functions | |
| T & | operator* () const |
| T * | operator-> () const |
| operator T* () const | |
| operator bool () const | |
| T * | getNullable () |
| const T * | getNullable () const |
| T * | get () |
| const T * | get () const |
| void | reference (cModule *referencingModule, const char *parameterName, bool mandatory) |
Private Member Functions | |
| void | checkReference () const |
Private Attributes | |
| opp_component_ptr< T > | referencedModule |
| cModule * | referencingModule = nullptr |
| const char * | parameterName = nullptr |
This template class implements a module reference that is parameterized by a string module parameter of the referencing module.
The reference can be set by providing the referencing module and the name of the module parameter. After the reference is set, it can be used similarly to a simple C++ pointer. The pointer is automatically set to nullptr when the referenced module is deleted.
TODO follow parameter change
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |