|
INET Framework for OMNeT++/OMNEST
|
This template class implements a module reference that is parameterized by a gate of the referencing module. More...
#include <ModuleRefByGate.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 |
| cGate * | getGate () |
| const cGate * | getGate () const |
| void | reference (cGate *gate, bool mandatory) |
Private Member Functions | |
| void | checkReference () const |
Private Attributes | |
| opp_component_ptr< T > | referencedModule |
| cGate * | gate = nullptr |
This template class implements a module reference that is parameterized by a gate of the referencing module.
The reference can be set by providing the gate of the referencing module. After the reference is set, it can be used similarly to simple a C++ pointer. The pointer is automatically set to nullptr when the referenced module is deleted.
TODO follow connection
|
inlineprivate |
|
inline |
Referenced by inet::ModuleRefByGate< T >::get().
|
inline |
Referenced by inet::ModuleRefByGate< T >::get().
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |