#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. More... | |
RawPointerT< Pointer > & | orNil (const char *nilTextToUse="[nil]") |
enable and, optionally, customize reporting of nil pointers More... | |
Public Attributes | |
const char * | label |
const char * | nilText = nullptr |
the name or description of the being-debugged object More... | |
const Pointer & | ptr |
bool | onExtraLine = false |
a possibly nil pointer to the being-debugged object More... | |
Detailed Description
class RawPointerT< Pointer >
Safely prints an object pointed to by the given pointer: [label]<object> Prints nothing at all if the pointer is nil.
Constructor & Destructor Documentation
◆ RawPointerT()
|
inline |
Member Function Documentation
◆ asExtra()
|
inline |
Definition at line 26 of file IoManip.h.
References RawPointerT< Pointer >::onExtraLine.
◆ orNil()
|
inline |
Definition at line 29 of file IoManip.h.
References RawPointerT< Pointer >::nilText.
Member Data Documentation
◆ label
const char* RawPointerT< Pointer >::label |
Definition at line 31 of file IoManip.h.
Referenced by operator<<().
◆ nilText
const char* RawPointerT< Pointer >::nilText = nullptr |
whether and how to report a nil pointer; use orNil() to enable
Definition at line 34 of file IoManip.h.
Referenced by operator<<(), and RawPointerT< Pointer >::orNil().
◆ onExtraLine
bool RawPointerT< Pointer >::onExtraLine = false |
Definition at line 37 of file IoManip.h.
Referenced by RawPointerT< Pointer >::asExtra(), and operator<<().
◆ ptr
const Pointer& RawPointerT< Pointer >::ptr |
Definition at line 36 of file IoManip.h.
Referenced by operator<<().
The documentation for this class was generated from the following file:
- src/base/IoManip.h