Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::io::FloatFormat Class Reference

#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
 

Member Enumeration Documentation

Enumerator
SHORTEST 
DECIMAL 
SCIENTIFIC 

Constructor & Destructor Documentation

elm::io::FloatFormat::FloatFormat ( void  )
elm::io::FloatFormat::FloatFormat ( float  val)
elm::io::FloatFormat::FloatFormat ( double  val)

Member Function Documentation

FloatFormat elm::io::FloatFormat::align ( alignment_t  a)

References _align.

FloatFormat elm::io::FloatFormat::center ( void  )

References _align, and elm::io::CENTER.

FloatFormat elm::io::FloatFormat::decimal ( void  )

References _style, and DECIMAL.

FloatFormat elm::io::FloatFormat::left ( void  )

References _align, and elm::io::LEFT.

FloatFormat elm::io::FloatFormat::lower ( void  )

References _upper.

FloatFormat elm::io::FloatFormat::operator() ( float  val)

References _val, and elm::io::f().

FloatFormat elm::io::FloatFormat::operator() ( double  val)

References _val, and elm::io::f().

FloatFormat elm::io::FloatFormat::pad ( char  p)

References _pad.

FloatFormat elm::io::FloatFormat::right ( void  )

References _align, and elm::io::RIGHT.

FloatFormat elm::io::FloatFormat::scientific ( void  )

References _style, and SCIENTIFIC.

FloatFormat elm::io::FloatFormat::shortest ( void  )

References _style, and SHORTEST.

FloatFormat elm::io::FloatFormat::style ( style_t  s)

References _style.

FloatFormat elm::io::FloatFormat::upper ( void  )

References _upper.

FloatFormat elm::io::FloatFormat::width ( int  w)

References _width.

FloatFormat elm::io::FloatFormat::width ( int  w,
int  d 
)

References _decw, and _width.

Member Data Documentation

unsigned char elm::io::FloatFormat::_align
unsigned char elm::io::FloatFormat::_decw

Referenced by elm::io::Output::print(), and width().

unsigned char elm::io::FloatFormat::_pad

Referenced by pad(), and elm::io::Output::print().

unsigned char elm::io::FloatFormat::_style
unsigned char elm::io::FloatFormat::_upper

Referenced by lower(), and upper().

double elm::io::FloatFormat::_val
unsigned char elm::io::FloatFormat::_width

Referenced by elm::io::Output::print(), and width().


The documentation for this class was generated from the following file: