GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::printf_format_list Class Reference
Collaboration diagram for octave::printf_format_list:

Public Member Functions

 printf_format_list (const printf_format_list &)=delete
 
 printf_format_list (const std::string &fmt="")
 
 ~printf_format_list (void)
 
const printf_format_eltcurrent (void) const
 
const printf_format_eltfirst (void)
 
bool last_elt_p (void)
 
size_t length (void) const
 
const printf_format_eltnext (bool cycle=true)
 
octave_idx_type num_conversions (void)
 
bool ok (void) const
 
 operator bool () const
 
printf_format_listoperator= (const printf_format_list &)=delete
 
void printme (void) const
 

Private Member Functions

void add_elt_to_list (int args, const std::string &flags, int fw, int prec, char type, char modifier)
 
void finish_conversion (const std::string &s, size_t &i, int args, const std::string &flags, int fw, int prec, char modifier, char &type)
 
void process_conversion (const std::string &s, size_t &i, size_t n, int &args, std::string &flags, int &fw, int &prec, char &modifier, char &type)
 

Private Attributes

std::ostringstream buf
 
size_t curr_idx
 
std::deque< printf_format_elt * > fmt_elts
 
octave_idx_type nconv
 

Detailed Description

Definition at line 786 of file oct-stream.cc.

Constructor & Destructor Documentation

◆ printf_format_list() [1/2]

octave::printf_format_list::printf_format_list ( const std::string &  fmt = "")

Definition at line 866 of file oct-stream.cc.

References add_elt_to_list(), buf, fmt_elts, n, nconv, and process_conversion().

◆ printf_format_list() [2/2]

octave::printf_format_list::printf_format_list ( const printf_format_list )
delete

◆ ~printf_format_list()

octave::printf_format_list::~printf_format_list ( void  )

Definition at line 948 of file oct-stream.cc.

References fmt_elts, and n.

Member Function Documentation

◆ add_elt_to_list()

void octave::printf_format_list::add_elt_to_list ( int  args,
const std::string &  flags,
int  fw,
int  prec,
char  type,
char  modifier 
)
private

Definition at line 960 of file oct-stream.cc.

References buf, and fmt_elts.

Referenced by printf_format_list(), and finish_conversion().

◆ current()

const printf_format_elt* octave::printf_format_list::current ( void  ) const
inline

Definition at line 809 of file oct-stream.cc.

References octave::jit_convention::length.

◆ finish_conversion()

void octave::printf_format_list::finish_conversion ( const std::string &  s,
size_t &  i,
int  args,
const std::string &  flags,
int  fw,
int  prec,
char  modifier,
char &  type 
)
private

Definition at line 1095 of file oct-stream.cc.

References add_elt_to_list(), buf, and nconv.

Referenced by process_conversion().

◆ first()

const printf_format_elt* octave::printf_format_list::first ( void  )
inline

Definition at line 803 of file oct-stream.cc.

Referenced by octave::base_stream::do_printf().

◆ last_elt_p()

bool octave::printf_format_list::last_elt_p ( void  )
inline

Definition at line 831 of file oct-stream.cc.

References octave::jit_convention::length.

◆ length()

size_t octave::printf_format_list::length ( void  ) const
inline

Definition at line 814 of file oct-stream.cc.

◆ next()

const printf_format_elt* octave::printf_format_list::next ( bool  cycle = true)
inline

Definition at line 816 of file oct-stream.cc.

References octave::jit_convention::length.

Referenced by octave::base_stream::do_printf().

◆ num_conversions()

octave_idx_type octave::printf_format_list::num_conversions ( void  )
inline

Definition at line 801 of file oct-stream.cc.

Referenced by octave::base_stream::do_printf(), and octave::base_stream::printf().

◆ ok()

bool octave::printf_format_list::ok ( void  ) const
inline

Definition at line 835 of file oct-stream.cc.

◆ operator bool()

octave::printf_format_list::operator bool ( ) const
inline

Definition at line 837 of file oct-stream.cc.

◆ operator=()

printf_format_list& octave::printf_format_list::operator= ( const printf_format_list )
delete

◆ printme()

◆ process_conversion()

void octave::printf_format_list::process_conversion ( const std::string &  s,
size_t &  i,
size_t  n,
int &  args,
std::string &  flags,
int &  fw,
int &  prec,
char &  modifier,
char &  type 
)
private

Definition at line 980 of file oct-stream.cc.

References buf, finish_conversion(), n, nconv, and nn.

Referenced by printf_format_list().

Member Data Documentation

◆ buf

std::ostringstream octave::printf_format_list::buf
private

◆ curr_idx

size_t octave::printf_format_list::curr_idx
private

Definition at line 846 of file oct-stream.cc.

◆ fmt_elts

std::deque<printf_format_elt*> octave::printf_format_list::fmt_elts
private

Definition at line 849 of file oct-stream.cc.

Referenced by printf_format_list(), ~printf_format_list(), add_elt_to_list(), and printme().

◆ nconv

octave_idx_type octave::printf_format_list::nconv
private

Definition at line 843 of file oct-stream.cc.

Referenced by printf_format_list(), finish_conversion(), and process_conversion().


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