GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#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 244 of file oct-stream.h.
printf_format_list::printf_format_list | ( | const std::string & | fmt = std::string () | ) |
Definition at line 578 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 665 of file oct-stream.cc.
References Array< T >::length(), and list.
|
private |
|
private |
Definition at line 677 of file oct-stream.cc.
References buf, Array< T >::length(), list, and Array< T >::resize().
Referenced by finish_conversion(), and printf_format_list().
|
inline |
Definition at line 262 of file oct-stream.h.
References Array< T >::elem(), and Array< T >::length().
|
private |
Definition at line 817 of file oct-stream.cc.
References add_elt_to_list(), buf, and nconv.
Referenced by process_conversion().
|
inline |
Definition at line 256 of file oct-stream.h.
Referenced by octave_base_stream::do_printf().
|
inline |
Definition at line 280 of file oct-stream.h.
References Array< T >::length().
|
inline |
Definition at line 265 of file oct-stream.h.
References Array< T >::length().
Referenced by octave_base_stream::do_printf().
|
inline |
Definition at line 254 of file oct-stream.h.
Referenced by octave_base_stream::do_printf(), and octave_base_stream::printf().
|
inline |
Definition at line 284 of file oct-stream.h.
|
inline |
Definition at line 286 of file oct-stream.h.
|
private |
void printf_format_list::printme | ( | void | ) | const |
Definition at line 872 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().
|
private |
Definition at line 703 of file oct-stream.cc.
References buf, finish_conversion(), nconv, and nn.
Referenced by printf_format_list().
|
private |
Definition at line 302 of file oct-stream.h.
Referenced by add_elt_to_list(), finish_conversion(), printf_format_list(), and process_conversion().
|
private |
Definition at line 295 of file oct-stream.h.
|
private |
Definition at line 299 of file oct-stream.h.
Referenced by add_elt_to_list(), printf_format_list(), printme(), and ~printf_format_list().
|
private |
Definition at line 292 of file oct-stream.h.
Referenced by finish_conversion(), printf_format_list(), and process_conversion().