Functions | |
| template<typename T, vcl_size_t VLength> | |
| std::ostream & | operator<< (std::ostream &os, const std::array< T, VLength > &container) |
| template<typename T> | |
| std::ostream & | operator<< (std::ostream &os, const std::list< T > &l) |
| template<typename T> | |
| std::ostream & | operator<< (std::ostream &os, const std::vector< T > &v) |
| template<typename T, vcl_size_t VLength, typename = std::enable_if_t<!std::is_same_v<T, char>>> | |
| std::ostream & | operator<< (std::ostream &os, const T(&arr)[VLength]) |
| template<typename T> | |
| void | PrintNumericTrait (std::ostream &os, const Indent &indent, const char *name, const T &value) |
| std::ostream & itk::print_helper::operator<< | ( | std::ostream & | os, |
| const std::array< T, VLength > & | container ) |
Definition at line 150 of file itkPrintHelper.h.
| std::ostream & itk::print_helper::operator<< | ( | std::ostream & | os, |
| const std::list< T > & | l ) |
Definition at line 133 of file itkPrintHelper.h.
| std::ostream & itk::print_helper::operator<< | ( | std::ostream & | os, |
| const std::vector< T > & | v ) |
Definition at line 113 of file itkPrintHelper.h.
| std::ostream & itk::print_helper::operator<< | ( | std::ostream & | os, |
| const T(&) | arr[VLength] ) |
Definition at line 170 of file itkPrintHelper.h.
|
inline |
Print "<name>: <value>\n" indented, matching ITK's PrintSelf style.
Formats and writes a single named member to os preceded by indent, followed by a newline. When NumericTraits<T>::PrintType differs from T (the relevant case being the char family, whose PrintType is int, so values render numerically rather than as ASCII characters) the value is forwarded through a static_cast. When the two types coincide (the common case, including all built-in scalars wider than char and std::complex specialisations whose PrintType is Self) the cast step is skipped entirely so the value's own stream insertion overload is selected directly.
Equivalent to the boilerplate
but with explicit os and indent parameters and no preprocessor macro expansion.
Typical use inside a PrintSelf override:
Definition at line 98 of file itkPrintHelper.h.
Referenced by itk::AnnulusOperator< TPixel, TDimension, TAllocator >::PrintSelf(), itk::Function::ColormapFunction< InputImagePixelType, OutputImagePixelType >::PrintSelf(), and itk::ShapeLabelObject< LabelType, Self::ImageDimension >::PrintSelf().