OMNeT++ Simulation Library
5.6.1
|
#include <simutil.h>
The constructor switches the context to the given component, and the destructor restores the original context.
Public Member Functions | |
cContextSwitcher (const cComponent *newContext) | |
~cContextSwitcher () | |
cContextSwitcher | ( | const cComponent * | newContext | ) |
Switches context to the given module
~cContextSwitcher | ( | ) |
Restores the original context