GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
float_display_format Class Reference

#include "pr-flt-fmt.h"

Collaboration diagram for float_display_format:

Public Member Functions

 float_display_format (const float_display_format &)=default
 
 float_display_format (const float_format &real_fmt, const float_format &imag_fmt=float_format())
 
 float_display_format (double scale, const float_format &real_fmt, const float_format &imag_fmt=float_format())
 
 float_display_format (void)=default
 
 ~float_display_format (void)=default
 
float_format imag_format (void) const
 
float_display_formatoperator= (const float_display_format &)=default
 
float_format real_format (void) const
 
double scale_factor (void) const
 
void set_precision (int prec)
 

Private Attributes

float_format m_imag_fmt
 
float_format m_real_fmt
 
double m_scale = 1.0
 

Detailed Description

Definition at line 208 of file pr-flt-fmt.h.

Constructor & Destructor Documentation

◆ float_display_format() [1/4]

float_display_format::float_display_format ( void  )
default

◆ float_display_format() [2/4]

float_display_format::float_display_format ( double  scale,
const float_format real_fmt,
const float_format imag_fmt = float_format () 
)
inline

Definition at line 216 of file pr-flt-fmt.h.

◆ float_display_format() [3/4]

float_display_format::float_display_format ( const float_format real_fmt,
const float_format imag_fmt = float_format () 
)
inlineexplicit

Definition at line 221 of file pr-flt-fmt.h.

◆ float_display_format() [4/4]

float_display_format::float_display_format ( const float_display_format )
default

◆ ~float_display_format()

float_display_format::~float_display_format ( void  )
default

Member Function Documentation

◆ imag_format()

float_format float_display_format::imag_format ( void  ) const
inline

Definition at line 236 of file pr-flt-fmt.h.

Referenced by base_ve_model::column_width(), get_column_width(), and pr_imag_float().

◆ operator=()

float_display_format& float_display_format::operator= ( const float_display_format )
default

◆ real_format()

float_format float_display_format::real_format ( void  ) const
inline

◆ scale_factor()

double float_display_format::scale_factor ( void  ) const
inline

◆ set_precision()

void float_display_format::set_precision ( int  prec)
inline

Member Data Documentation

◆ m_imag_fmt

float_format float_display_format::m_imag_fmt
private

Definition at line 250 of file pr-flt-fmt.h.

◆ m_real_fmt

float_format float_display_format::m_real_fmt
private

Definition at line 248 of file pr-flt-fmt.h.

◆ m_scale

double float_display_format::m_scale = 1.0
private

Definition at line 246 of file pr-flt-fmt.h.


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