CodeContext.h
Go to the documentation of this file.
100 CodeContextGuard(const CodeContext::Pointer &newContext): savedCodeContext(CodeContext::Current()) { CodeContext::Reset(newContext); }
Definition: Stopwatch.h:18
CodeContext::Pointer savedCodeContext
Definition: CodeContext.h:106
std::ostream & operator<<(std::ostream &os, const CodeContext &ctx)
by default, only small context gist is printed
Definition: CodeContext.h:86
virtual std::ostream & detailCodeContext(std::ostream &os) const =0
appends human-friendly context description line(s) to a cache.log record
void CallBack(const CodeContext::Pointer &callbackContext, Fun &&callback)
Definition: CodeContext.h:126
virtual ScopedId codeContextGist() const =0
Definition: InstanceId.h:18
static void Reset()
forgets the current context, setting it to nil/unknown
Definition: CodeContext.cc:77
void CallParser(const CodeContext::Pointer &parsingContext, Fun &&parse)
Definition: CodeContext.h:138
std::ostream & CurrentCodeContextBrief(std::ostream &os)
CodeContextGuard(const CodeContext::Pointer &newContext)
Definition: CodeContext.h:100
void CallAndRestore_(const CodeContext::Pointer &context, Fun &&fun)
Definition: CodeContext.h:114
Definition: CodeContext.h:97
std::ostream & CurrentCodeContextDetail(std::ostream &os)
Definition: CodeContext.cc:96
void CallService(const CodeContext::Pointer &serviceContext, Fun &&service)
Definition: CodeContext.h:151
Definition: CodeContext.h:52
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