GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
printf_format_list Class Reference
Collaboration diagram for 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)
 
std::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, std::size_t &i, int args, const std::string &flags, int fw, int prec, char modifier, char &type)
 
void process_conversion (const std::string &s, std::size_t &i, std::size_t n, int &args, std::string &flags, int &fw, int &prec, char &modifier, char &type)
 

Private Attributes

std::ostringstream m_buf
 
std::size_t m_curr_idx
 
std::deque< printf_format_elt * > m_fmt_elts
 
octave_idx_type m_nconv
 

Detailed Description

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

Constructor & Destructor Documentation

◆ printf_format_list() [1/2]

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

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

References add_elt_to_list(), m_buf, m_fmt_elts, m_nconv, n, and process_conversion().

◆ printf_format_list() [2/2]

printf_format_list::printf_format_list ( const printf_format_list )
delete

◆ ~printf_format_list()

printf_format_list::~printf_format_list ( void  )

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

References m_fmt_elts, and n.

Member Function Documentation

◆ add_elt_to_list()

void 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 973 of file oct-stream.cc.

References m_buf, and m_fmt_elts.

Referenced by printf_format_list(), and finish_conversion().

◆ current()

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

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

◆ finish_conversion()

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

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

References add_elt_to_list(), m_buf, and m_nconv.

Referenced by process_conversion().

◆ first()

const printf_format_elt* printf_format_list::first ( void  )
inline

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

Referenced by base_stream::do_printf().

◆ last_elt_p()

bool printf_format_list::last_elt_p ( void  )
inline

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

◆ length()

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

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

◆ next()

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

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

Referenced by base_stream::do_printf().

◆ num_conversions()

octave_idx_type printf_format_list::num_conversions ( void  )
inline

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

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

◆ ok()

bool printf_format_list::ok ( void  ) const
inline

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

◆ operator bool()

printf_format_list::operator bool ( ) const
inline

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

◆ operator=()

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

◆ printme()

◆ process_conversion()

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

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

References finish_conversion(), m_buf, m_nconv, n, and nn.

Referenced by printf_format_list().

Member Data Documentation

◆ m_buf

std::ostringstream printf_format_list::m_buf
private

◆ m_curr_idx

std::size_t printf_format_list::m_curr_idx
private

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

◆ m_fmt_elts

std::deque<printf_format_elt *> printf_format_list::m_fmt_elts
private

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

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

◆ m_nconv

octave_idx_type printf_format_list::m_nconv
private

Definition at line 866 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: