cContextSwitcher Class Reference¶
|
API
|
cContextSwitcher Class Reference
Inheritance diagram for cContextSwitcher:
Public Member Functions | |
| cContextSwitcher (const cComponent *newContext) | |
| ~cContextSwitcher () | |
| cComponent * | getCallerContext () const |
Description
The constructor switches the context to the given component, and the destructor restores the original context.
- See also
- cSimulation::getContextModule(), cSimulation::setContextModule()
Constructor & Destructor Documentation
◆ cContextSwitcher()
| cContextSwitcher | ( | const cComponent * | newContext | ) |
Switches context to the given module
◆ ~cContextSwitcher()
| ~cContextSwitcher | ( | ) |
Restores the original context
Member Function Documentation
◆ getCallerContext()
|
inline |
Returns the original context
Generated on for API by