GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
Public Member Functions | |
textscan_format_list (const std::string &fmt=std::string(), const std::string &who="textscan") | |
~textscan_format_list (void) | |
const textscan_format_elt * | current (void) const |
const textscan_format_elt * | first (void) |
const textscan_format_elt * | next (bool cycle=true) |
octave_idx_type | num_conversions (void) const |
size_t | numel (void) const |
bool | ok (void) const |
operator const void * (void) const | |
std::list< octave_value > | out_buf (void) const |
void | printme (void) const |
int | read_first_row (delimited_stream &is, textscan &ts) |
Public Attributes | |
bool | has_string |
bool | set_from_first |
std::string | who |
Private Member Functions | |
textscan_format_list (const textscan_format_list &) | |
void | add_elt_to_list (unsigned int width, int prec, int bitwidth, octave_value val_type, bool discard, char type, const std::string &char_class=std::string()) |
int | finish_conversion (const std::string &s, size_t &i, size_t n, unsigned int &width, int &prec, int &bitwidth, octave_value &val_type, bool discard, char &type) |
textscan_format_list & | operator= (const textscan_format_list &) |
std::string | parse_char_class (const std::string &pattern) const |
void | process_conversion (const std::string &s, size_t &i, size_t n) |
Private Attributes | |
std::ostringstream | buf |
size_t | curr_idx |
std::deque< textscan_format_elt * > | fmt_elts |
octave_idx_type | nconv |
std::list< octave_value > | output_container |
Definition at line 1690 of file oct-stream.cc.
octave::textscan_format_list::textscan_format_list | ( | const std::string & | fmt = std::string () , |
const std::string & | who = "textscan" |
||
) |
Definition at line 1945 of file oct-stream.cc.
References add_elt_to_list(), octave::textscan_format_elt::literal_conversion, process_conversion(), and type.
octave::textscan_format_list::~textscan_format_list | ( | void | ) |
Definition at line 2045 of file oct-stream.cc.
References numel().
|
private |
|
private |
Definition at line 2057 of file oct-stream.cc.
References string.
Referenced by finish_conversion(), and textscan_format_list().
|
inline |
Definition at line 1715 of file oct-stream.cc.
References numel().
|
private |
Definition at line 2364 of file oct-stream.cc.
References add_elt_to_list(), parse_char_class(), retval, and string.
Referenced by process_conversion().
|
inline |
Definition at line 1709 of file oct-stream.cc.
Referenced by octave::textscan::read_format_once().
|
inline |
Definition at line 1720 of file oct-stream.cc.
References numel().
Referenced by octave::textscan::read_format_once().
|
inline |
Definition at line 1700 of file oct-stream.cc.
Referenced by octave::textscan::do_scan().
|
inline |
Definition at line 1707 of file oct-stream.cc.
Referenced by octave::textscan::do_scan(), printme(), octave::textscan::read_format_once(), and ~textscan_format_list().
|
inline |
Definition at line 1737 of file oct-stream.cc.
|
inline |
Definition at line 1739 of file oct-stream.cc.
|
private |
|
inline |
Definition at line 1752 of file oct-stream.cc.
Referenced by octave::textscan::do_scan().
|
private |
Definition at line 2277 of file oct-stream.cc.
References retval, string, and warning_with_id().
Referenced by finish_conversion().
void octave::textscan_format_list::printme | ( | void | ) | const |
Definition at line 2431 of file oct-stream.cc.
References octave::textscan_format_elt::bitwidth, octave::textscan_format_elt::char_class, octave::textscan_format_elt::discard, octave::textscan_format_elt::literal_conversion, numel(), octave::textscan_format_elt::prec, octave::textscan_format_elt::text, octave::textscan_format_elt::type, undo_string_escapes(), octave::textscan_format_elt::whitespace_conversion, and octave::textscan_format_elt::width.
|
private |
Definition at line 2081 of file oct-stream.cc.
References c, done, error(), finish_conversion(), octave_value(), and type.
Referenced by textscan_format_list().
int octave::textscan_format_list::read_first_row | ( | delimited_stream & | is, |
textscan & | ts | ||
) |
Definition at line 2463 of file oct-stream.cc.
References octave::delimited_stream::clear(), dv, octave::textscan::empty_value, octave::delimited_stream::eof(), octave::textscan::eol1, octave::textscan::eol2, octave::delimited_stream::fail(), octave::delimited_stream::getline(), nconv, octave::delimited_stream::no_progress(), octave_value(), octave::delimited_stream::progress_benchmark(), octave::delimited_stream::rdstate(), retval, octave_value::scalar_value(), octave::textscan::scan_complex(), octave::textscan::skip_delim(), octave::textscan::skip_whitespace(), string, and val.
Referenced by octave::textscan::do_scan().
|
private |
Definition at line 1770 of file oct-stream.cc.
|
private |
Definition at line 1761 of file oct-stream.cc.
|
private |
Definition at line 1764 of file oct-stream.cc.
bool octave::textscan_format_list::has_string |
Definition at line 1748 of file oct-stream.cc.
Referenced by octave::textscan::parse_options().
|
private |
Definition at line 1758 of file oct-stream.cc.
Referenced by read_first_row().
|
private |
Definition at line 1767 of file oct-stream.cc.
bool octave::textscan_format_list::set_from_first |
Definition at line 1745 of file oct-stream.cc.
Referenced by octave::textscan::do_scan().
std::string octave::textscan_format_list::who |
Definition at line 1742 of file oct-stream.cc.