GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
Public Member Functions | |
delimited_stream (std::istream &is, const std::string &delimiters, int longest_lookahead, octave_idx_type bsize=4096) | |
delimited_stream (std::istream &is, const delimited_stream &ds) | |
~delimited_stream (void) | |
void | clear (std::ios_base::iostate m=(std::ios_base::eofbit &~std::ios_base::eofbit)) |
bool | eof (void) |
bool | fail (void) |
void | field_done (void) |
int | get (void) |
int | get_undelim (void) |
int | getline (std::string &dest, char delim) |
bool | no_progress (void) |
operator const void * (void) | |
int | peek (void) |
int | peek_undelim (void) |
void | progress_benchmark (void) |
void | putback (char=0) |
std::ios_base::iostate | rdstate (void) |
char * | read (char *buffer, int size, char *&new_start) |
int | refresh_buf (void) |
void | seekg (char *old_idx) |
void | setstate (std::ios_base::iostate m) |
char * | tellg (void) |
Private Member Functions | |
delimited_stream (const delimited_stream &) | |
delimited_stream & | operator= (const delimited_stream &) |
Private Attributes | |
char * | buf |
std::streampos | buf_in_file |
int | bufsize |
bool | delimited |
const std::string | delims |
char * | eob |
std::ios_base::iostate | flags |
std::istream & | i_stream |
char * | idx |
char * | last |
int | longest |
char * | progress_marker |
Definition at line 1221 of file oct-stream.cc.
octave::delimited_stream::delimited_stream | ( | std::istream & | is, |
const std::string & | delimiters, | ||
int | longest_lookahead, | ||
octave_idx_type | bsize = 4096 |
||
) |
Definition at line 1357 of file oct-stream.cc.
References buf, bufsize, eob, idx, progress_marker, and refresh_buf().
octave::delimited_stream::delimited_stream | ( | std::istream & | is, |
const delimited_stream & | ds | ||
) |
Definition at line 1374 of file oct-stream.cc.
References buf, bufsize, eob, idx, progress_marker, and refresh_buf().
octave::delimited_stream::~delimited_stream | ( | void | ) |
Definition at line 1387 of file oct-stream.cc.
References buf, buf_in_file, eof(), i_stream, and idx.
|
private |
|
inline |
Definition at line 1295 of file oct-stream.cc.
References m.
Referenced by octave::textscan::lookahead(), octave::textscan::read_double(), octave::textscan_format_list::read_first_row(), octave::textscan::read_format_once(), octave::textscan::scan_complex(), octave::textscan::scan_one(), and octave::textscan::skip_whitespace().
|
inline |
Definition at line 1282 of file oct-stream.cc.
Referenced by get_undelim(), read(), octave::textscan_format_list::read_first_row(), octave::textscan::read_format_once(), octave::textscan::read_until(), refresh_buf(), octave::textscan::scan_caret(), octave::textscan::scan_complex(), octave::textscan::skip_whitespace(), and ~delimited_stream().
|
inline |
Definition at line 1289 of file oct-stream.cc.
Referenced by octave::textscan_format_list::read_first_row(), octave::textscan::read_format_once(), octave::textscan::scan_complex(), and octave::textscan::scan_one().
|
inline |
Definition at line 1235 of file oct-stream.cc.
Referenced by getline(), and octave::textscan::scan_one().
|
inline |
Definition at line 1247 of file oct-stream.cc.
Referenced by octave::textscan::read_double(), octave::textscan::scan_complex(), octave::textscan::scan_qstring(), octave::textscan::scan_string(), and octave::textscan::skip_delim().
int octave::delimited_stream::get_undelim | ( | void | ) |
Definition at line 1404 of file oct-stream.cc.
References delimited, eob, eof(), idx, last, refresh_buf(), retval, and setstate().
Referenced by getline(), octave::textscan::match_literal(), peek_undelim(), read(), octave::textscan::read_until(), octave::textscan::scan_bracket(), octave::textscan::scan_caret(), octave::textscan::scan_cstring(), octave::textscan::scan_qstring(), octave::textscan::skip_delim(), and octave::textscan::skip_whitespace().
int octave::delimited_stream::getline | ( | std::string & | dest, |
char | delim | ||
) |
Definition at line 1594 of file oct-stream.cc.
References field_done(), get_undelim(), and used.
Referenced by octave::textscan_format_list::read_first_row().
|
inline |
Definition at line 1306 of file oct-stream.cc.
Referenced by octave::textscan_format_list::read_first_row().
|
inline |
Definition at line 1287 of file oct-stream.cc.
|
private |
|
inline |
Definition at line 1259 of file oct-stream.cc.
Referenced by octave::textscan::read_double(), octave::textscan::read_format_once(), octave::textscan::scan_complex(), and octave::textscan::scan_qstring().
int octave::delimited_stream::peek_undelim | ( | void | ) |
Definition at line 1438 of file oct-stream.cc.
References get_undelim(), putback(), and retval.
Referenced by octave::textscan::skip_delim(), and octave::textscan::skip_whitespace().
|
inline |
Definition at line 1304 of file oct-stream.cc.
Referenced by octave::textscan_format_list::read_first_row().
|
inline |
Definition at line 1268 of file oct-stream.cc.
Referenced by octave::textscan::match_literal(), peek_undelim(), octave::textscan::read_double(), octave::textscan::scan_bracket(), octave::textscan::scan_caret(), octave::textscan::scan_complex(), octave::textscan::scan_string(), octave::textscan::skip_delim(), and octave::textscan::skip_whitespace().
|
inline |
Definition at line 1291 of file oct-stream.cc.
Referenced by octave::textscan::read_double(), octave::textscan_format_list::read_first_row(), octave::textscan::read_format_once(), octave::textscan::scan_complex(), octave::textscan::scan_one(), and octave::textscan::skip_whitespace().
char * octave::delimited_stream::read | ( | char * | buffer, |
int | size, | ||
char *& | new_start | ||
) |
Definition at line 1527 of file oct-stream.cc.
References buf, bufsize, delimited, eob, eof(), get_undelim(), idx, last, refresh_buf(), retval, and size.
Referenced by octave::textscan::lookahead(), octave::textscan::scan_complex(), and octave::textscan::skip_whitespace().
int octave::delimited_stream::refresh_buf | ( | void | ) |
Definition at line 1452 of file oct-stream.cc.
References buf, buf_in_file, bufsize, delimited, delims, eob, eof(), i_stream, idx, last, longest, progress_marker, and retval.
Referenced by delimited_stream(), get_undelim(), and read().
|
inline |
Definition at line 1280 of file oct-stream.cc.
Referenced by octave::textscan::lookahead(), octave::textscan::scan_complex(), and octave::textscan::skip_whitespace().
|
inline |
Definition at line 1293 of file oct-stream.cc.
References m.
Referenced by get_undelim(), octave::textscan::match_literal(), octave::textscan::read_double(), and octave::textscan::read_format_once().
|
inline |
Definition at line 1278 of file oct-stream.cc.
Referenced by octave::textscan::lookahead(), octave::textscan::read_format_once(), octave::textscan::scan_complex(), and octave::textscan::skip_whitespace().
|
private |
Definition at line 1317 of file oct-stream.cc.
Referenced by delimited_stream(), read(), refresh_buf(), and ~delimited_stream().
|
private |
Definition at line 1339 of file oct-stream.cc.
Referenced by refresh_buf(), and ~delimited_stream().
|
private |
Definition at line 1311 of file oct-stream.cc.
Referenced by delimited_stream(), read(), and refresh_buf().
|
private |
Definition at line 1330 of file oct-stream.cc.
Referenced by get_undelim(), read(), and refresh_buf().
|
private |
Definition at line 1336 of file oct-stream.cc.
Referenced by refresh_buf().
|
private |
Definition at line 1327 of file oct-stream.cc.
Referenced by delimited_stream(), get_undelim(), read(), and refresh_buf().
|
private |
Definition at line 1344 of file oct-stream.cc.
|
private |
Definition at line 1314 of file oct-stream.cc.
Referenced by refresh_buf(), and ~delimited_stream().
|
private |
Definition at line 1320 of file oct-stream.cc.
Referenced by delimited_stream(), get_undelim(), read(), refresh_buf(), and ~delimited_stream().
|
private |
Definition at line 1324 of file oct-stream.cc.
Referenced by get_undelim(), read(), and refresh_buf().
|
private |
Definition at line 1333 of file oct-stream.cc.
Referenced by refresh_buf().
|
private |
Definition at line 1342 of file oct-stream.cc.
Referenced by delimited_stream(), and refresh_buf().