GNU Octave  4.2.1
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 137 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 142 of file pr-output.cc.

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

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

float_format::float_format ( const float_format ff)
inline

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

float_format::~float_format ( void  )
inline

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

Member Function Documentation

float_format& float_format::fixed ( void  )
inline

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

float_format& float_format::general ( void  )
inline

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

float_format& float_format::lowercase ( void  )
inline

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

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

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

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

float_format& float_format::precision ( int  p)
inline

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

References p.

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

float_format& float_format::scientific ( void  )
inline

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

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

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

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

Definition at line 179 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 288 of file pr-output.cc.

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

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

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

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

Member Data Documentation

int float_format::ex
private

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

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

int float_format::fmt
private

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

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

int float_format::fw
private

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

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

int float_format::prec
private

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

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

int float_format::sp
private

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

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

int float_format::up
private

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

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


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