|
Squid Web Cache master
|
#include <IoManip.h>
Public Member Functions | |
| RawPointerT (const char *aLabel, const Pointer &aPtr) | |
| RawPointerT< Pointer > & | asExtra () |
| Report the pointed-to-object on a dedicated Debug::Extra line. | |
| RawPointerT< Pointer > & | orNil (const char *nilTextToUse="[nil]") |
| enable and, optionally, customize reporting of nil pointers | |
Public Attributes | |
| const char * | label |
| const char * | nilText = nullptr |
| the name or description of the being-debugged object | |
| const Pointer & | ptr |
| bool | onExtraLine = false |
| a possibly nil pointer to the being-debugged object | |
Our convenience manipulator/wrapper classes often have methods that tune their "printing" effects (e.g., AsHex::minDigits()). STL streams also have manipulators that tune how subsequent operator "<<" parameters are printed (e.g., std::setw()). The calling code can also print various decorations (i.e. prefixes and suffixes). The following principles are useful when deciding what manipulator methods to add and how to implement them:
std::uppercase << asHex(n) << std::nouppercase.(c.empty() ? "" : "/") << asList(c).bar << asX(y) or asX(y) << bar and get exactly the same effect.
|
inline |
|
inline |
Definition at line 56 of file IoManip.h.
References RawPointerT< Pointer >::onExtraLine.
|
inline |
Definition at line 59 of file IoManip.h.
References RawPointerT< Pointer >::nilText.
| const char* RawPointerT< Pointer >::label |
Definition at line 61 of file IoManip.h.
Referenced by operator<<().
| const char* RawPointerT< Pointer >::nilText = nullptr |
whether and how to report a nil pointer; use orNil() to enable
Definition at line 64 of file IoManip.h.
Referenced by operator<<(), and RawPointerT< Pointer >::orNil().
| bool RawPointerT< Pointer >::onExtraLine = false |
Definition at line 67 of file IoManip.h.
Referenced by RawPointerT< Pointer >::asExtra(), and operator<<().
| const Pointer& RawPointerT< Pointer >::ptr |
Definition at line 66 of file IoManip.h.
Referenced by operator<<().