GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Attributes | Friends | List of all members
float_format Class Reference
Collaboration diagram for float_format:
Collaboration graph
[legend]

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_formatted_float &pff)
 
std::ostream & operator<< (std::ostream &os, const pr_rational_float &prf)
 

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 167 of file pr-output.cc.

Member Function Documentation

float_format& float_format::fixed ( void  )
inline

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

float_format& float_format::general ( void  )
inline

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

float_format& float_format::lowercase ( void  )
inline

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

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

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

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

float_format& float_format::precision ( int  p)
inline

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

Referenced by ddaini(), ddajac(), ddassl(), and ddastp().

float_format& float_format::scientific ( void  )
inline

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

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

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

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

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

References Faddeeva::w().

Friends And Related Function Documentation

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

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

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

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

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

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

Member Data Documentation

int float_format::ex
private

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

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

int float_format::fmt
private

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

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

int float_format::fw
private

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

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

int float_format::prec
private

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

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

int float_format::sp
private

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

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

int float_format::up
private

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

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


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