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...
 

Functions

template<class Pointer >
RawPointerT< Pointer > RawPointer (const char *label, const Pointer &ptr)
 convenience wrapper for creating RawPointerT<> objects 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...
 

Function Documentation

◆ asHex()

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

◆ operator<<() [1/2]

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

Definition at line 70 of file IoManip.h.

◆ operator<<() [2/2]

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()

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors