Public Member Functions | |
delimited_stream (const delimited_stream &)=delete | |
delimited_stream (std::istream &is, const delimited_stream &ds) | |
delimited_stream (std::istream &is, const std::string &delimiters, int longest_lookahead, octave_idx_type bsize=4096) | |
~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) | |
delimited_stream & | operator= (const delimited_stream &)=delete |
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 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 1211 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 1350 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 1366 of file oct-stream.cc.
|
delete |
octave::delimited_stream::~delimited_stream | ( | void | ) |
Definition at line 1371 of file oct-stream.cc.
References buf, buf_in_file, eof(), i_stream, and idx.
|
inline |
Definition at line 1294 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 1281 of file oct-stream.cc.
Referenced by ~delimited_stream(), 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(), and octave::textscan::skip_whitespace().
|
inline |
Definition at line 1288 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 1231 of file oct-stream.cc.
Referenced by getline(), and octave::textscan::scan_one().
|
inline |
Definition at line 1243 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 1388 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 1579 of file oct-stream.cc.
References field_done(), get_undelim(), and len.
Referenced by octave::textscan_format_list::read_first_row().
|
inline |
Definition at line 1305 of file oct-stream.cc.
Referenced by octave::textscan_format_list::read_first_row().
|
inline |
Definition at line 1286 of file oct-stream.cc.
|
delete |
|
inline |
Definition at line 1258 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 1422 of file oct-stream.cc.
References get_undelim(), putback(), and retval.
Referenced by octave::textscan::scan_qstring(), octave::textscan::skip_delim(), and octave::textscan::skip_whitespace().
|
inline |
Definition at line 1303 of file oct-stream.cc.
Referenced by octave::textscan_format_list::read_first_row().
|
inline |
Definition at line 1267 of file oct-stream.cc.
Referenced by octave::textscan::match_literal(), peek_undelim(), octave::textscan::read_double(), octave::textscan::read_until(), 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 1290 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 1512 of file oct-stream.cc.
References buf, bufsize, delimited, eob, eof(), get_undelim(), idx, last, refresh_buf(), and retval.
Referenced by octave::textscan::lookahead(), octave::textscan::scan_complex(), and octave::textscan::skip_whitespace().
int octave::delimited_stream::refresh_buf | ( | void | ) |
Definition at line 1436 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 1279 of file oct-stream.cc.
Referenced by octave::textscan::lookahead(), octave::textscan::read_format_once(), octave::textscan::scan_complex(), and octave::textscan::skip_whitespace().
|
inline |
Definition at line 1292 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 1277 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 1316 of file oct-stream.cc.
Referenced by delimited_stream(), ~delimited_stream(), read(), and refresh_buf().
|
private |
Definition at line 1338 of file oct-stream.cc.
Referenced by ~delimited_stream(), and refresh_buf().
|
private |
Definition at line 1310 of file oct-stream.cc.
Referenced by delimited_stream(), read(), and refresh_buf().
|
private |
Definition at line 1329 of file oct-stream.cc.
Referenced by get_undelim(), read(), and refresh_buf().
|
private |
Definition at line 1335 of file oct-stream.cc.
Referenced by refresh_buf().
|
private |
Definition at line 1326 of file oct-stream.cc.
Referenced by delimited_stream(), get_undelim(), read(), and refresh_buf().
|
private |
Definition at line 1343 of file oct-stream.cc.
|
private |
Definition at line 1313 of file oct-stream.cc.
Referenced by ~delimited_stream(), and refresh_buf().
|
private |
Definition at line 1319 of file oct-stream.cc.
Referenced by delimited_stream(), ~delimited_stream(), get_undelim(), read(), and refresh_buf().
|
private |
Definition at line 1323 of file oct-stream.cc.
Referenced by get_undelim(), read(), and refresh_buf().
|
private |
Definition at line 1332 of file oct-stream.cc.
Referenced by refresh_buf().
|
private |
Definition at line 1341 of file oct-stream.cc.
Referenced by delimited_stream(), and refresh_buf().