#include "oct-stream.h"
Public Member Functions | |
printf_format_list (const std::string &fmt=std::string()) | |
~printf_format_list (void) | |
const printf_format_elt * | current (void) const |
const printf_format_elt * | first (void) |
bool | last_elt_p (void) |
const printf_format_elt * | next (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, octave_idx_type &num_elts) |
void | finish_conversion (const std::string &s, size_t &i, int args, const std::string &flags, int fw, int prec, char modifier, char &type, octave_idx_type &num_elts) |
printf_format_list & | operator= (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, octave_idx_type &num_elts) |
Private Attributes | |
std::ostringstream * | buf |
octave_idx_type | curr_idx |
Array< printf_format_elt * > | list |
octave_idx_type | nconv |
Definition at line 243 of file oct-stream.h.
printf_format_list::printf_format_list | ( | const std::string & | fmt = std::string () |
) |
Definition at line 577 of file oct-stream.cc.
References add_elt_to_list(), buf, list, nconv, process_conversion(), and Array< T >::resize().
printf_format_list::~printf_format_list | ( | void | ) |
Definition at line 664 of file oct-stream.cc.
References Array< T >::length(), and list.
printf_format_list::printf_format_list | ( | const printf_format_list & | ) | [private] |
void printf_format_list::add_elt_to_list | ( | int | args, | |
const std::string & | flags, | |||
int | fw, | |||
int | prec, | |||
char | type, | |||
char | modifier, | |||
octave_idx_type & | num_elts | |||
) | [private] |
Definition at line 676 of file oct-stream.cc.
References buf, Array< T >::length(), list, and Array< T >::resize().
Referenced by printf_format_list().
const printf_format_elt* printf_format_list::current | ( | void | ) | const [inline] |
Definition at line 261 of file oct-stream.h.
References Array< T >::elem(), and Array< T >::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, | |||
octave_idx_type & | num_elts | |||
) | [private] |
Definition at line 806 of file oct-stream.cc.
const printf_format_elt* printf_format_list::first | ( | void | ) | [inline] |
Definition at line 255 of file oct-stream.h.
Referenced by octave_base_stream::do_printf().
bool printf_format_list::last_elt_p | ( | void | ) | [inline] |
Definition at line 279 of file oct-stream.h.
References Array< T >::length().
const printf_format_elt* printf_format_list::next | ( | bool | cycle = true |
) | [inline] |
Definition at line 264 of file oct-stream.h.
References Array< T >::length().
Referenced by octave_base_stream::do_printf().
octave_idx_type printf_format_list::num_conversions | ( | void | ) | [inline] |
Definition at line 253 of file oct-stream.h.
Referenced by octave_base_stream::do_printf(), and octave_base_stream::printf().
bool printf_format_list::ok | ( | void | ) | const [inline] |
Definition at line 283 of file oct-stream.h.
printf_format_list::operator bool | ( | ) | const [inline] |
Definition at line 285 of file oct-stream.h.
printf_format_list& printf_format_list::operator= | ( | const printf_format_list & | ) | [private] |
void printf_format_list::printme | ( | void | ) | const |
Definition at line 860 of file oct-stream.cc.
References printf_format_elt::args, printf_format_elt::flags, printf_format_elt::fw, Array< T >::length(), list, printf_format_elt::modifier, printf_format_elt::prec, printf_format_elt::text, printf_format_elt::type, and undo_string_escapes().
std::ostringstream* printf_format_list::buf [private] |
Definition at line 301 of file oct-stream.h.
Referenced by add_elt_to_list(), and printf_format_list().
octave_idx_type printf_format_list::curr_idx [private] |
Definition at line 294 of file oct-stream.h.
Array<printf_format_elt*> printf_format_list::list [private] |
Definition at line 298 of file oct-stream.h.
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 291 of file oct-stream.h.
Referenced by printf_format_list().