IoManip.h File Reference
#include "debug/Stream.h"
#include <iostream>
#include <iomanip>
Include dependency graph for IoManip.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RawPointerT< Pointer >
 
class  AsHex< Integer >
 std::ostream manipulator to print integers as hex numbers prefixed by 0x More...
 
class  AsList< Container >
 std::ostream manipulator to print containers as flat lists More...
 

Functions

template<class Pointer >
RawPointerT< Pointer > RawPointer (const char *label, const Pointer &ptr)
 convenience wrapper for creating RawPointerT<> objects More...
 
template<class Pointer >
RawPointerT< Pointer > RawPointer (const Pointer &ptr)
 convenience wrapper for creating RawPointerT<> objects without a label More...
 
template<class Pointer >
std::ostream & operator<< (std::ostream &os, const RawPointerT< Pointer > &pd)
 prints RawPointerT<>, dereferencing the io_manip pointer if possible More...
 
template<class Integer >
std::ostream & operator<< (std::ostream &os, const AsHex< Integer > number)
 
template<class Integer >
AsHex< Integer > asHex (const Integer n)
 a helper to ease AsHex object creation More...
 
void PrintHex (std::ostream &, const char *data, size_t n)
 Prints the first n data bytes using hex notation. Does nothing if n is 0. More...
 
template<class Container >
std::ostream & operator<< (std::ostream &os, const AsList< Container > &manipulator)
 
template<typename Container >
auto asList (const Container &c)
 a helper to ease AsList object creation More...
 

Function Documentation

◆ asHex()

template<class Integer >
AsHex< Integer > asHex ( const Integer  n)
inline

◆ asList()

template<typename Container >
auto asList ( const Container &  c)
inline

Definition at line 145 of file IoManip.h.

◆ operator<<() [1/3]

template<class Integer >
std::ostream & operator<< ( std::ostream &  os,
const AsHex< Integer >  number 
)
inline

Definition at line 88 of file IoManip.h.

◆ operator<<() [2/3]

template<class Container >
std::ostream & operator<< ( std::ostream &  os,
const AsList< Container > &  manipulator 
)
inline

◆ operator<<() [3/3]

template<class Pointer >
std::ostream & operator<< ( std::ostream &  os,
const RawPointerT< Pointer > &  pd 
)
inline

◆ PrintHex()

void PrintHex ( std::ostream &  os,
const char *  data,
size_t  n 
)

Definition at line 16 of file IoManip.cc.

References assert, and for_each().

Referenced by Raw::print(), and PrintSecret().

◆ RawPointer() [1/2]

template<class Pointer >
RawPointerT< Pointer > RawPointer ( const char *  label,
const Pointer &  ptr 
)
inline

◆ RawPointer() [2/2]

template<class Pointer >
RawPointerT< Pointer > RawPointer ( const Pointer &  ptr)
inline

Definition at line 51 of file IoManip.h.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors