LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "hexfloat.h"
Public Types | |
using | real_t = T |
Public Member Functions | |
OptionalHexFloatFormatter (real_t v, bool start_active=true) | |
template<typename Stream > | |
Stream & | operator() (Stream &&os) const |
Prints the value set at construction. More... | |
template<typename Stream > | |
void | write (Stream &&os, real_t v) const |
Prints the specified value into the specified stream. More... | |
Static Public Member Functions | |
template<typename Stream > | |
static void | write_hexfloat (Stream &&os, real_t v) |
Prints the specified value into the specified stream. More... | |
template<typename Stream > | |
static void | write_standard (Stream &&os, real_t v) |
Prints the specified value into the specified stream. More... | |
Private Attributes | |
bool | active |
whether we are writing in base 16 More... | |
real_t | value |
the value to be printed More... | |
Definition at line 31 of file hexfloat.h.
using lar::details::OptionalHexFloatFormatter< T >::real_t = T |
Definition at line 33 of file hexfloat.h.
|
inline |
Definition at line 42 of file hexfloat.h.
|
inline |
Prints the value set at construction.
Definition at line 47 of file hexfloat.h.
References lar::details::OptionalHexFloatFormatter< T >::value, and lar::details::OptionalHexFloatFormatter< T >::write().
|
inline |
Prints the specified value into the specified stream.
Definition at line 53 of file hexfloat.h.
References lar::details::OptionalHexFloatFormatter< T >::active, lar::details::OptionalHexFloatFormatter< T >::write_hexfloat(), and lar::details::OptionalHexFloatFormatter< T >::write_standard().
Referenced by lar::details::OptionalHexFloatFormatter< T >::operator()().
|
inlinestatic |
Prints the specified value into the specified stream.
Definition at line 61 of file hexfloat.h.
Referenced by lar::details::OptionalHexFloatFormatter< T >::write().
|
inlinestatic |
Prints the specified value into the specified stream.
Definition at line 71 of file hexfloat.h.
Referenced by lar::details::OptionalHexFloatFormatter< T >::write().
|
private |
whether we are writing in base 16
Definition at line 74 of file hexfloat.h.
Referenced by lar::OptionalHexFloat::disable(), lar::OptionalHexFloat::enable(), lar::OptionalHexFloat::enabled(), lar::OptionalHexFloat::operator()(), and lar::details::OptionalHexFloatFormatter< T >::write().
|
private |
the value to be printed
Definition at line 75 of file hexfloat.h.
Referenced by lar::details::OptionalHexFloatFormatter< T >::operator()(), and lar::OptionalHexFloat::operator()().