![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/io/Output.h>
Public Types | |
enum | style_t { SHORTEST = 0, DECIMAL = 1, SCIENTIFIC = 2 } |
Public Member Functions | |
FloatFormat (void) | |
FloatFormat (float val) | |
FloatFormat (double val) | |
FloatFormat | operator() (float val) |
FloatFormat | operator() (double val) |
FloatFormat & | width (int w) |
FloatFormat & | width (int w, int d) |
FloatFormat & | style (style_t s) |
FloatFormat & | shortest (void) |
FloatFormat & | decimal (void) |
FloatFormat & | scientific (void) |
FloatFormat & | align (alignment_t a) |
FloatFormat & | left (void) |
FloatFormat & | center (void) |
FloatFormat & | right (void) |
FloatFormat & | upper (void) |
FloatFormat & | lower (void) |
FloatFormat & | pad (char p) |
Public Attributes | |
double | _val |
unsigned char | _width |
unsigned char | _decw |
unsigned char | _style |
unsigned char | _align: 2 |
unsigned char | _upper: 1 |
unsigned char | _pad |
Format description for float or double data to display in the Output class.
enum style_t |
|
inline |
|
inline |
|
inline |
|
inline |
References FloatFormat::_align.
|
inline |
References FloatFormat::_align, and elm::io::CENTER.
|
inline |
References FloatFormat::_style, and FloatFormat::DECIMAL.
|
inline |
References FloatFormat::_align, and elm::io::LEFT.
|
inline |
References FloatFormat::_upper.
|
inline |
References FloatFormat::_val.
|
inline |
References FloatFormat::_val.
|
inline |
References FloatFormat::_pad, and elm::io::p().
|
inline |
References FloatFormat::_align, and elm::io::RIGHT.
|
inline |
References FloatFormat::_style, and FloatFormat::SCIENTIFIC.
|
inline |
References FloatFormat::_style, and FloatFormat::SHORTEST.
|
inline |
References FloatFormat::_style.
|
inline |
References FloatFormat::_upper.
|
inline |
References FloatFormat::_width.
|
inline |
References FloatFormat::_decw, and FloatFormat::_width.
unsigned char _align |
Referenced by FloatFormat::align(), FloatFormat::center(), FloatFormat::left(), and FloatFormat::right().
unsigned char _decw |
Referenced by FloatFormat::width().
unsigned char _pad |
Referenced by FloatFormat::pad().
unsigned char _style |
Referenced by FloatFormat::decimal(), FloatFormat::scientific(), FloatFormat::shortest(), and FloatFormat::style().
unsigned char _upper |
Referenced by FloatFormat::lower(), and FloatFormat::upper().
double _val |
Referenced by FloatFormat::operator()().
unsigned char _width |
Referenced by FloatFormat::width().