GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "oct-stream.h"
Public Member Functions | |
scanf_format_list (const std::string &fmt=std::string()) | |
~scanf_format_list (void) | |
bool | all_character_conversions (void) |
bool | all_numeric_conversions (void) |
const scanf_format_elt * | current (void) const |
const scanf_format_elt * | first (void) |
octave_idx_type | length (void) |
const scanf_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 | |
scanf_format_list (const scanf_format_list &) | |
void | add_elt_to_list (int width, bool discard, char type, char modifier, octave_idx_type &num_elts, const std::string &char_class=std::string()) |
int | finish_conversion (const std::string &s, size_t &i, size_t n, int &width, bool discard, char &type, char modifier, octave_idx_type &num_elts) |
scanf_format_list & | operator= (const scanf_format_list &) |
void | process_conversion (const std::string &s, size_t &i, size_t n, int &width, bool &discard, char &type, char &modifier, octave_idx_type &num_elts) |
Private Attributes | |
std::ostringstream * | buf |
octave_idx_type | curr_idx |
Array< scanf_format_elt * > | list |
octave_idx_type | nconv |
Definition at line 103 of file oct-stream.h.
scanf_format_list::scanf_format_list | ( | const std::string & | fmt = std::string () | ) |
Definition at line 157 of file oct-stream.cc.
References add_elt_to_list(), buf, list, scanf_format_elt::literal_conversion, nconv, process_conversion(), Array< T >::resize(), and scanf_format_elt::whitespace_conversion.
scanf_format_list::~scanf_format_list | ( | void | ) |
Definition at line 236 of file oct-stream.cc.
References Array< T >::length(), and list.
|
private |
|
private |
Definition at line 248 of file oct-stream.cc.
References buf, Array< T >::length(), list, and Array< T >::resize().
Referenced by finish_conversion(), and scanf_format_list().
Definition at line 518 of file oct-stream.cc.
References Array< T >::length(), list, scanf_format_elt::literal_conversion, scanf_format_elt::type, and scanf_format_elt::whitespace_conversion.
Referenced by octave_base_stream::do_scanf().
Definition at line 548 of file oct-stream.cc.
References Array< T >::length(), list, and scanf_format_elt::type.
|
inline |
Definition at line 128 of file oct-stream.h.
|
private |
Definition at line 413 of file oct-stream.cc.
References add_elt_to_list(), buf, expand_char_class(), and nconv.
Referenced by process_conversion().
|
inline |
Definition at line 122 of file oct-stream.h.
Referenced by octave_base_stream::do_scanf(), and octave_base_stream::oscanf().
|
inline |
Definition at line 120 of file oct-stream.h.
Referenced by octave_base_stream::do_scanf(), and octave_base_stream::oscanf().
|
inline |
Definition at line 131 of file oct-stream.h.
Referenced by octave_base_stream::do_scanf(), and octave_base_stream::oscanf().
|
inline |
Definition at line 113 of file oct-stream.h.
Referenced by octave_base_stream::do_scanf(), octave_base_stream::oscanf(), and octave_base_stream::scanf().
Definition at line 147 of file oct-stream.h.
|
inline |
Definition at line 149 of file oct-stream.h.
|
private |
Definition at line 490 of file oct-stream.cc.
References scanf_format_elt::char_class, scanf_format_elt::discard, Array< T >::length(), list, scanf_format_elt::literal_conversion, scanf_format_elt::modifier, scanf_format_elt::text, scanf_format_elt::type, undo_string_escapes(), scanf_format_elt::whitespace_conversion, and scanf_format_elt::width.
|
private |
Definition at line 310 of file oct-stream.cc.
References buf, finish_conversion(), and nconv.
Referenced by scanf_format_list().
|
private |
Definition at line 169 of file oct-stream.h.
Referenced by add_elt_to_list(), finish_conversion(), process_conversion(), and scanf_format_list().
|
private |
Definition at line 162 of file oct-stream.h.
|
private |
Definition at line 166 of file oct-stream.h.
Referenced by add_elt_to_list(), all_character_conversions(), all_numeric_conversions(), printme(), scanf_format_list(), and ~scanf_format_list().
|
private |
Definition at line 159 of file oct-stream.h.
Referenced by finish_conversion(), process_conversion(), and scanf_format_list().