|
Squid Web Cache master
|
#include <CodeContext.h>
Public Member Functions | |
| CodeContextGuard (const CodeContext::Pointer &newContext) | |
| ~CodeContextGuard () | |
| CodeContextGuard (CodeContextGuard &&)=delete | |
Public Attributes | |
| CodeContext::Pointer | savedCodeContext |
Convenience class that automatically restores the current/outer CodeContext when leaving the scope of the new-context following/inner code.
Definition at line 97 of file CodeContext.h.
|
inline |
Definition at line 100 of file CodeContext.h.
References CodeContext::Reset().
|
inline |
Definition at line 101 of file CodeContext.h.
References CodeContext::Reset(), and savedCodeContext.
|
delete |
| CodeContext::Pointer CodeContextGuard::savedCodeContext |
Definition at line 106 of file CodeContext.h.
Referenced by ~CodeContextGuard().