Public Member Functions | Private Attributes | Friends

float_format Class Reference

Collaboration diagram for float_format:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 float_format (int w=current_output_max_field_width(), int p=current_output_precision(), int f=0)
 float_format (int w, int e, int p, int f)
 float_format (const float_format &ff)
 ~float_format (void)
float_formatfixed (void)
float_formatgeneral (void)
float_formatlowercase (void)
float_formatoperator= (const float_format &ff)
float_formatprecision (int p)
float_formatscientific (void)
float_formattrailing_zeros (bool tz=true)
float_formatuppercase (void)
float_formatwidth (int w)

Private Attributes

int ex
int fmt
int fw
int prec
int sp
int up

Friends

std::ostream & operator<< (std::ostream &os, const pr_engineering_float &pef)
std::ostream & operator<< (std::ostream &os, const pr_rational_float &prf)
std::ostream & operator<< (std::ostream &os, const pr_formatted_float &pff)

Detailed Description

Definition at line 136 of file pr-output.cc.


Constructor & Destructor Documentation

float_format::float_format ( int  w = current_output_max_field_width (),
int  p = current_output_precision (),
int  f = 0 
) [inline]

Definition at line 141 of file pr-output.cc.

float_format::float_format ( int  w,
int  e,
int  p,
int  f 
) [inline]

Definition at line 145 of file pr-output.cc.

float_format::float_format ( const float_format ff  )  [inline]

Definition at line 148 of file pr-output.cc.

float_format::~float_format ( void   )  [inline]

Definition at line 166 of file pr-output.cc.


Member Function Documentation

float_format& float_format::fixed ( void   )  [inline]

Definition at line 169 of file pr-output.cc.

float_format& float_format::general ( void   )  [inline]

Definition at line 170 of file pr-output.cc.

float_format& float_format::lowercase ( void   )  [inline]

Definition at line 173 of file pr-output.cc.

float_format& float_format::operator= ( const float_format ff  )  [inline]

Definition at line 151 of file pr-output.cc.

References ex, fmt, fw, prec, sp, and up.

float_format& float_format::precision ( int  p  )  [inline]

Definition at line 175 of file pr-output.cc.

float_format& float_format::scientific ( void   )  [inline]

Definition at line 168 of file pr-output.cc.

float_format& float_format::trailing_zeros ( bool  tz = true  )  [inline]

Definition at line 179 of file pr-output.cc.

float_format& float_format::uppercase ( void   )  [inline]
float_format& float_format::width ( int  w  )  [inline]

Definition at line 177 of file pr-output.cc.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const pr_engineering_float pef 
) [friend]

Definition at line 283 of file pr-output.cc.

std::ostream& operator<< ( std::ostream &  os,
const pr_rational_float prf 
) [friend]

Definition at line 451 of file pr-output.cc.

std::ostream& operator<< ( std::ostream &  os,
const pr_formatted_float pff 
) [friend]

Definition at line 328 of file pr-output.cc.


Member Data Documentation

int float_format::ex [private]

Definition at line 197 of file pr-output.cc.

Referenced by operator<<(), and operator=().

Definition at line 203 of file pr-output.cc.

Referenced by operator<<(), and operator=().

int float_format::fw [private]

Definition at line 194 of file pr-output.cc.

Referenced by operator<<(), and operator=().

Definition at line 200 of file pr-output.cc.

Referenced by operator<<(), and operator=().

int float_format::sp [private]

Definition at line 209 of file pr-output.cc.

Referenced by operator<<(), and operator=().

int float_format::up [private]

Definition at line 206 of file pr-output.cc.

Referenced by operator<<(), and operator=().


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines