#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.
|
inline |
Prints the specified value into the specified stream.
Definition at line 53 of file hexfloat.h.
|
inlinestatic |
|
inlinestatic |
Prints the specified value into the specified stream.
Definition at line 71 of file hexfloat.h.
|
private |
whether we are writing in base 16
Definition at line 74 of file hexfloat.h.
|
private |
the value to be printed
Definition at line 75 of file hexfloat.h.
1.8.5