μHAL (v2.7.9)
Part of the IPbus software repository
Classes | Namespaces | Enumerations | Functions
log_inserters.integer.hpp File Reference
#include <stdint.h>
#include <iostream>
#include <uhal/log/log_inserter_helper.hpp>
#include "uhal/log/log_inserters.integer.hxx"
Include dependency graph for log_inserters.integer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  uhal::IntFmt< BASE, FORMAT, WIDTH >
 Empty struct which acts as a dummy variable for passing the formatting information around. More...
 
class  uhal::_Integer< T, FORMAT >
 Forward declare an ultra-lightweight wrapper which does formatting of numbers only on demand. More...
 
class  uhal::_Integer< T, FORMAT >
 Forward declare an ultra-lightweight wrapper which does formatting of numbers only on demand. More...
 
class  uhal::_Integer< T, IntFmt< bin, fixed, WIDTH > >
 
class  uhal::_Integer< T, IntFmt< bin, variable, WIDTH > >
 
class  uhal::_Integer< T, IntFmt< dec, fixed, WIDTH > >
 
class  uhal::_Integer< T, IntFmt< dec, variable, WIDTH > >
 
class  uhal::_Integer< T, IntFmt< hex, fixed, WIDTH > >
 
class  uhal::_Integer< T, IntFmt< hex, variable, WIDTH > >
 

Namespaces

 uhal
 

Enumerations

enum  uhal::integer_base { uhal::bin, uhal::dec, uhal::hex }
 Enumerated type specifying the formatting option. More...
 
enum  uhal::integer_format { uhal::fixed, uhal::variable }
 Enumerated type specifying the formatting option. More...
 

Functions

static const integer_base uhal::DefaultIntegerBase (dec)
 Constant which is the default formatting option. More...
 
static const integer_format uhal::DefaultIntegerFormat (variable)
 Constant which is the default formatting option. More...
 
template<typename T >
_Integer< T, IntFmt<> > uhal::Integer (const T &aT)
 Forward declare a function which creates an instance of the ultra-lightweight wrapper from an integer. More...
 
template<typename T , integer_base BASE, integer_format FORMAT, uint32_t WIDTH>
_Integer< T, IntFmt< BASE, FORMAT, WIDTH > > uhal::Integer (const T &aT, const IntFmt< BASE, FORMAT, WIDTH > &aFmt)
 Forward declare a function which creates an instance of the ultra-lightweight wrapper from an integer. More...
 
template<typename T >
void uhal::sign_helper (std::ostream &aStr, const T &aInt)
 Helper function for adding the '+'/'-' sign. More...
 
template<>
void uhal::sign_helper (std::ostream &aStr, const int8_t &aInt)
 Helper function for adding the '+'/'-' sign to int8_ts. More...
 
template<>
void uhal::sign_helper (std::ostream &aStr, const int16_t &aInt)
 Helper function for adding the '+'/'-' sign to int16_ts. More...
 
template<>
void uhal::sign_helper (std::ostream &aStr, const int32_t &aInt)
 Helper function for adding the '+'/'-' sign to int32_ts. More...
 
template<>
void uhal::sign_helper (std::ostream &aStr, const int64_t &aInt)
 Helper function for adding the '+'/'-' sign to int64_ts. More...
 
template<typename FORMAT >
std::ostream & uhal::operator<< (std::ostream &aStr, const uhal::_Integer< uint8_t, FORMAT > &aInt)
 
template<typename FORMAT >
std::ostream & uhal::operator<< (std::ostream &aStr, const uhal::_Integer< int8_t, FORMAT > &aInt)
 
template<typename FORMAT >
std::ostream & uhal::operator<< (std::ostream &aStr, const uhal::_Integer< uint16_t, FORMAT > &aInt)
 
template<typename FORMAT >
std::ostream & uhal::operator<< (std::ostream &aStr, const uhal::_Integer< int16_t, FORMAT > &aInt)
 
template<typename FORMAT >
std::ostream & uhal::operator<< (std::ostream &aStr, const uhal::_Integer< uint32_t, FORMAT > &aInt)
 
template<typename FORMAT >
std::ostream & uhal::operator<< (std::ostream &aStr, const uhal::_Integer< int32_t, FORMAT > &aInt)
 
template<typename FORMAT >
std::ostream & uhal::operator<< (std::ostream &aStr, const uhal::_Integer< uint64_t, FORMAT > &aInt)
 
template<typename FORMAT >
std::ostream & uhal::operator<< (std::ostream &aStr, const uhal::_Integer< int64_t, FORMAT > &aInt)