![]() |
LArSoft
v10_06_00
Liquid Argon Software toolkit - https://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 30 of file hexfloat.h.
| using lar::details::OptionalHexFloatFormatter< T >::real_t = T |
Definition at line 32 of file hexfloat.h.
|
inline |
Definition at line 39 of file hexfloat.h.
|
inline |
Prints the value set at construction.
Definition at line 44 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 52 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 62 of file hexfloat.h.
Referenced by lar::details::OptionalHexFloatFormatter< T >::write().
|
inlinestatic |
Prints the specified value into the specified stream.
Definition at line 72 of file hexfloat.h.
Referenced by lar::details::OptionalHexFloatFormatter< T >::write().
|
private |
whether we are writing in base 16
Definition at line 78 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 79 of file hexfloat.h.
Referenced by lar::details::OptionalHexFloatFormatter< T >::operator()(), and lar::OptionalHexFloat::operator()().