std::ostream manipulator to print containers as flat lists More...
#include <IoManip.h>
![Collaboration graph](classAsList__coll__graph.png)
Public Member Functions | |
AsList (const Container &c) | |
auto & | prefixedBy (const char *const p) |
a c-string to print before the first item (if any). Caller must ensure lifetime. More... | |
auto & | suffixedBy (const char *const p) |
a c-string to print after the last item (if any). Caller must ensure lifetime. More... | |
auto & | delimitedBy (const char *const d) |
a c-string to print between consecutive items (if any). Caller must ensure lifetime. More... | |
auto & | quoted (const char *const q="\"") |
c-string to print before and after each item. Caller must ensure lifetime. More... | |
auto & | quoted (const char *const preQ, const char *const postQ) |
c-strings to print before and after each item. Caller must ensure lifetime. More... | |
void | print (std::ostream &) const |
writes the container to the given stream More... | |
Public Attributes | |
const Container & | container |
zero or more items to print More... | |
const char * | prefix = nullptr |
a c-string to print before the first item (if any). Caller must ensure lifetime. More... | |
const char * | suffix = nullptr |
a c-string to print after the last item (if any). Caller must ensure lifetime. More... | |
const char * | delimiter = nullptr |
a c-string to print between consecutive items (if any). Caller must ensure lifetime. More... | |
const char * | preQuote = nullptr |
optional c-string to print before each item; More... | |
const char * | postQuote = nullptr |
optional c-string to print after each item; More... | |
Detailed Description
Constructor & Destructor Documentation
◆ AsList()
Member Function Documentation
◆ delimitedBy()
|
inline |
Definition at line 188 of file IoManip.h.
References AsList< Container >::delimiter.
Referenced by ErrorState::Dump(), and operator<<().
◆ prefixedBy()
|
inline |
Definition at line 182 of file IoManip.h.
References AsList< Container >::prefix.
Referenced by dump_peer_options(), and operator<<().
◆ print()
void AsList< Container >::print | ( | std::ostream & | os | ) | const |
◆ quoted() [1/2]
|
inline |
Definition at line 194 of file IoManip.h.
References AsList< Container >::postQuote, and AsList< Container >::preQuote.
◆ quoted() [2/2]
|
inline |
Definition at line 191 of file IoManip.h.
References AsList< Container >::postQuote, and AsList< Container >::preQuote.
◆ suffixedBy()
|
inline |
Definition at line 185 of file IoManip.h.
References AsList< Container >::suffix.
Member Data Documentation
◆ container
const Container& AsList< Container >::container |
◆ delimiter
const char* AsList< Container >::delimiter = nullptr |
Definition at line 204 of file IoManip.h.
Referenced by AsList< Container >::delimitedBy().
◆ postQuote
const char* AsList< Container >::postQuote = nullptr |
- See also
- quoted()
Definition at line 206 of file IoManip.h.
Referenced by AsList< Container >::quoted().
◆ prefix
const char* AsList< Container >::prefix = nullptr |
Definition at line 202 of file IoManip.h.
Referenced by AsList< Container >::prefixedBy().
◆ preQuote
const char* AsList< Container >::preQuote = nullptr |
- See also
- quoted()
Definition at line 205 of file IoManip.h.
Referenced by AsList< Container >::quoted().
◆ suffix
const char* AsList< Container >::suffix = nullptr |
Definition at line 203 of file IoManip.h.
Referenced by AsList< Container >::suffixedBy().
The documentation for this class was generated from the following file:
- src/base/IoManip.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