CodeContextGuard Class Reference
#include <CodeContext.h>
Collaboration diagram for CodeContextGuard:
![Collaboration graph](classCodeContextGuard__coll__graph.png)
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
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products