#include <iosfwd>
Include dependency graph for InstanceId.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| class | ScopedId |
| class | InstanceId< Class, ValueType > |
Macros | |
| #define | InstanceIdDefinitions3(Class, pfx, ValueType, ...) |
| An InstanceIdDefinitions() helper. Avoid direct use. More... | |
| #define | InstanceIdDefinitions(...) InstanceIdDefinitions3(__VA_ARGS__, InstanceIdDefaultValueType) |
| convenience macro to instantiate Class-specific stuff in .cc files More... | |
Typedefs | |
| typedef unsigned int | InstanceIdDefaultValueType |
Functions | |
| std::ostream & | operator<< (std::ostream &os, const ScopedId &id) |
| template<class Class , class ValueType > | |
| std::ostream & | operator<< (std::ostream &os, const InstanceId< Class, ValueType > &id) |
| print the id More... | |
Macro Definition Documentation
◆ InstanceIdDefinitions
| #define InstanceIdDefinitions | ( | ... | ) | InstanceIdDefinitions3(__VA_ARGS__, InstanceIdDefaultValueType) |
Definition at line 90 of file InstanceId.h.
◆ InstanceIdDefinitions3
| #define InstanceIdDefinitions3 | ( | Class, | |
| pfx, | |||
| ValueType, | |||
| ... | |||
| ) |
Value:
InstanceId<Class, ValueType>::prefix() const { \
return pfx; \
} \
template<> std::ostream & \
InstanceId<Class, ValueType>::print(std::ostream &os) const { \
return os << pfx << value; \
} \
template<> void \
InstanceId<Class, ValueType>::change() { \
static auto Last = Value(); \
value = ++Last ? Last : ++Last; \
}
Definition at line 74 of file InstanceId.h.
Typedef Documentation
◆ InstanceIdDefaultValueType
| typedef unsigned int InstanceIdDefaultValueType |
Definition at line 37 of file InstanceId.h.
Function Documentation
◆ operator<<() [1/2]
template<class Class , class ValueType >
|
inline |
Definition at line 95 of file InstanceId.h.
◆ operator<<() [2/2]
| std::ostream& operator<< | ( | std::ostream & | os, |
| const ScopedId & | id | ||
| ) |
Definition at line 15 of file InstanceId.cc.
const char * prefix() const
std::ostream & print(std::ostream &) const
writes a compact text representation of the ID
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
