#include <ServiceGroups.h>
![Collaboration graph](classAdaptation_1_1ServicePlan__coll__graph.png)
Public Types | |
typedef unsigned int | Pos |
Public Member Functions | |
ServicePlan () | |
ServicePlan (const ServiceGroupPointer &g, const ServiceFilter &filter) | |
true iff there are no more services planned More... | |
bool | exhausted () const |
ServicePointer | current () const |
returns nil if the plan is complete More... | |
ServicePointer | replacement (const ServiceFilter &filter) |
next to try after failure More... | |
ServicePointer | next (const ServiceFilter &filter) |
next in chain after success More... | |
std::ostream & | print (std::ostream &os) const |
Private Attributes | |
ServiceGroupPointer | group |
the group we are iterating More... | |
Pos | pos |
current service position within the group More... | |
bool | atEof |
cached information for better performance More... | |
Detailed Description
iterates services stored in a group; iteration is not linear because we need to both replace failed services and advance to the next chain link
Definition at line 122 of file ServiceGroups.h.
Member Typedef Documentation
◆ Pos
typedef unsigned int Adaptation::ServicePlan::Pos |
Definition at line 125 of file ServiceGroups.h.
Constructor & Destructor Documentation
◆ ServicePlan() [1/2]
Adaptation::ServicePlan::ServicePlan | ( | ) |
Definition at line 275 of file ServiceGroups.cc.
◆ ServicePlan() [2/2]
|
explicit |
Definition at line 279 of file ServiceGroups.cc.
Member Function Documentation
◆ current()
Adaptation::ServicePointer Adaptation::ServicePlan::current | ( | ) | const |
current service
Definition at line 289 of file ServiceGroups.cc.
◆ exhausted()
|
inline |
Definition at line 132 of file ServiceGroups.h.
References atEof.
◆ next()
Adaptation::ServicePointer Adaptation::ServicePlan::next | ( | const ServiceFilter & | filter | ) |
Definition at line 304 of file ServiceGroups.cc.
◆ print()
std::ostream & Adaptation::ServicePlan::print | ( | std::ostream & | os | ) | const |
Definition at line 312 of file ServiceGroups.cc.
Referenced by Adaptation::operator<<().
◆ replacement()
Adaptation::ServicePointer Adaptation::ServicePlan::replacement | ( | const ServiceFilter & | filter | ) |
Definition at line 296 of file ServiceGroups.cc.
Member Data Documentation
◆ atEof
|
private |
Definition at line 144 of file ServiceGroups.h.
Referenced by exhausted(), and ServicePlan().
◆ group
|
private |
Definition at line 142 of file ServiceGroups.h.
Referenced by ServicePlan().
◆ pos
|
private |
Definition at line 143 of file ServiceGroups.h.
Referenced by ServicePlan().
The documentation for this class was generated from the following files:
- src/adaptation/ServiceGroups.h
- src/adaptation/ServiceGroups.cc
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