#include <CodeContext.h>
Public Member Functions | |
CodeContextGuard (const CodeContext::Pointer &newContext) | |
~CodeContextGuard () | |
CodeContextGuard (CodeContextGuard &&)=delete | |
Public Attributes | |
CodeContext::Pointer | savedCodeContext |
Detailed Description
Convenience class that automatically restores the current/outer CodeContext when leaving the scope of the new-context following/inner code.
- See also
- Run().
Definition at line 97 of file CodeContext.h.
Constructor & Destructor Documentation
◆ CodeContextGuard() [1/2]
|
inline |
Definition at line 100 of file CodeContext.h.
References CodeContext::Reset().
◆ ~CodeContextGuard()
|
inline |
Definition at line 101 of file CodeContext.h.
References CodeContext::Reset(), and savedCodeContext.
◆ CodeContextGuard() [2/2]
|
delete |
Member Data Documentation
◆ savedCodeContext
CodeContext::Pointer CodeContextGuard::savedCodeContext |
Definition at line 106 of file CodeContext.h.
Referenced by ~CodeContextGuard().
The documentation for this class was generated from the following file:
- src/base/CodeContext.h