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 Member Functions | Private Attributes | List of all members
printf_format_list Class Reference
Collaboration diagram for printf_format_list:
Collaboration graph
[legend]

Public Member Functions

 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
 
void printme (void) const
 

Private Member Functions

 printf_format_list (const printf_format_list &)
 
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)
 
printf_format_listoperator= (const printf_format_list &)
 
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 793 of file oct-stream.cc.

Constructor & Destructor Documentation

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

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

References add_elt_to_list(), buf, fmt_elts, nconv, process_conversion(), string, and type.

printf_format_list::~printf_format_list ( void  )

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

References fmt_elts.

printf_format_list::printf_format_list ( const printf_format_list )
private

Member Function Documentation

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

References buf, fmt_elts, string, and type.

Referenced by finish_conversion(), and printf_format_list().

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

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

References jit_convention::length.

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

References add_elt_to_list(), buf, and nconv.

Referenced by process_conversion().

const printf_format_elt* printf_format_list::first ( void  )
inline

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

Referenced by octave_base_stream::do_printf().

bool printf_format_list::last_elt_p ( void  )
inline

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

References jit_convention::length.

size_t printf_format_list::length ( void  ) const
inline

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

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

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

References jit_convention::length.

Referenced by octave_base_stream::do_printf().

octave_idx_type printf_format_list::num_conversions ( void  )
inline

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

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

bool printf_format_list::ok ( void  ) const
inline

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

printf_format_list::operator bool ( ) const
inline

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

printf_format_list& printf_format_list::operator= ( const printf_format_list )
private
void printf_format_list::printme ( void  ) const
void 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 988 of file oct-stream.cc.

References buf, finish_conversion(), nconv, nn, string, and tmp.

Referenced by printf_format_list().

Member Data Documentation

std::ostringstream printf_format_list::buf
private
size_t printf_format_list::curr_idx
private

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

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

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

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

octave_idx_type printf_format_list::nconv
private

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

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


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