
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 (bool initialize=false) |
| std::ptrdiff_t | remaining (void) |
| void | seekg (char *old_idx) |
| void | setstate (std::ios_base::iostate m) |
| char * | tellg (void) |
Private Attributes | |
| char * | m_buf |
| std::streampos | m_buf_in_file |
| int | m_bufsize |
| bool | m_delimited |
| const std::string | m_delims |
| char * | m_eob |
| std::ios_base::iostate | m_flags |
| std::istream & | m_i_stream |
| char * | m_idx |
| char * | m_last |
| int | m_longest |
| std::ptrdiff_t | m_overlap |
| char * | m_progress_marker |
Definition at line 1224 of file oct-stream.cc.
| delimited_stream::delimited_stream | ( | std::istream & | is, |
| const std::string & | delimiters, | ||
| int | longest_lookahead, | ||
| octave_idx_type | bsize = 4096 |
||
| ) |
Definition at line 1380 of file oct-stream.cc.
References m_buf, m_bufsize, m_eob, m_idx, m_progress_marker, and refresh_buf().
| delimited_stream::delimited_stream | ( | std::istream & | is, |
| const delimited_stream & | ds | ||
| ) |
Definition at line 1396 of file oct-stream.cc.
|
delete |
| delimited_stream::~delimited_stream | ( | void | ) |
Definition at line 1401 of file oct-stream.cc.
References eof(), m_buf, m_buf_in_file, m_i_stream, m_idx, and m_overlap.
|
inline |
Definition at line 1310 of file oct-stream.cc.
References m.
Referenced by textscan::lookahead(), textscan::read_double(), textscan_format_list::read_first_row(), textscan::read_format_once(), textscan::scan_complex(), textscan::scan_one(), and textscan::skip_whitespace().
|
inline |
Definition at line 1295 of file oct-stream.cc.
Referenced by ~delimited_stream(), get_undelim(), read(), textscan_format_list::read_first_row(), textscan::read_format_once(), textscan::read_until(), refresh_buf(), textscan::scan_caret(), textscan::scan_complex(), and textscan::skip_whitespace().
|
inline |
Definition at line 1304 of file oct-stream.cc.
Referenced by textscan_format_list::read_first_row(), textscan::read_format_once(), textscan::scan_complex(), and textscan::scan_one().
|
inline |
Definition at line 1244 of file oct-stream.cc.
Referenced by getline(), and textscan::scan_one().
|
inline |
Definition at line 1256 of file oct-stream.cc.
Referenced by textscan::read_double(), textscan::scan_complex(), textscan::scan_qstring(), and textscan::skip_delim().
| int delimited_stream::get_undelim | ( | void | ) |
Definition at line 1418 of file oct-stream.cc.
References eof(), m_delimited, m_eob, m_idx, m_last, refresh_buf(), and setstate().
Referenced by getline(), textscan::match_literal(), peek_undelim(), read(), textscan::read_double(), textscan::read_until(), textscan::scan_bracket(), textscan::scan_caret(), textscan::scan_complex(), textscan::scan_cstring(), textscan::scan_qstring(), textscan::scan_string(), textscan::skip_delim(), and textscan::skip_whitespace().
| int delimited_stream::getline | ( | std::string & | dest, |
| char | delim | ||
| ) |
Definition at line 1628 of file oct-stream.cc.
References field_done(), get_undelim(), and len.
Referenced by textscan_format_list::read_first_row().
|
inline |
Definition at line 1321 of file oct-stream.cc.
Referenced by textscan_format_list::read_first_row().
|
inline |
Definition at line 1301 of file oct-stream.cc.
|
delete |
|
inline |
Definition at line 1271 of file oct-stream.cc.
| int delimited_stream::peek_undelim | ( | void | ) |
Definition at line 1452 of file oct-stream.cc.
References get_undelim(), and putback().
Referenced by textscan::read_double(), textscan::read_format_once(), textscan::scan_complex(), textscan::scan_qstring(), textscan::skip_delim(), and textscan::skip_whitespace().
|
inline |
Definition at line 1319 of file oct-stream.cc.
Referenced by textscan_format_list::read_first_row().
|
inline |
Definition at line 1281 of file oct-stream.cc.
Referenced by textscan::match_literal(), peek_undelim(), textscan::read_double(), textscan::read_until(), textscan::scan_bracket(), textscan::scan_caret(), textscan::scan_complex(), textscan::scan_string(), textscan::skip_delim(), and textscan::skip_whitespace().
|
inline |
Definition at line 1306 of file oct-stream.cc.
Referenced by textscan::read_double(), textscan_format_list::read_first_row(), textscan::read_format_once(), textscan::scan_complex(), textscan::scan_one(), and textscan::skip_whitespace().
| char * delimited_stream::read | ( | char * | buffer, |
| int | size, | ||
| char *& | new_start | ||
| ) |
Definition at line 1561 of file oct-stream.cc.
References eof(), get_undelim(), m_buf, m_bufsize, m_delimited, m_eob, m_idx, m_last, and refresh_buf().
Referenced by textscan::lookahead(), textscan::scan_complex(), and textscan::skip_whitespace().
| int delimited_stream::refresh_buf | ( | bool | initialize = false | ) |
Definition at line 1466 of file oct-stream.cc.
References eof(), initialize(), m_buf, m_buf_in_file, m_bufsize, m_delimited, m_delims, m_eob, m_i_stream, m_idx, m_last, m_longest, m_overlap, m_progress_marker, and min().
Referenced by delimited_stream(), get_undelim(), and read().
|
inline |
Definition at line 1326 of file oct-stream.cc.
References max().
Referenced by textscan::read_double().
|
inline |
Definition at line 1293 of file oct-stream.cc.
Referenced by textscan::lookahead(), textscan::read_format_once(), textscan::scan_complex(), and textscan::skip_whitespace().
|
inline |
Definition at line 1308 of file oct-stream.cc.
References m.
Referenced by get_undelim(), textscan::match_literal(), textscan::read_double(), and textscan::read_format_once().
|
inline |
Definition at line 1291 of file oct-stream.cc.
Referenced by textscan::lookahead(), textscan::read_format_once(), textscan::scan_complex(), and textscan::skip_whitespace().
|
private |
Definition at line 1343 of file oct-stream.cc.
Referenced by delimited_stream(), ~delimited_stream(), read(), and refresh_buf().
|
private |
Definition at line 1368 of file oct-stream.cc.
Referenced by ~delimited_stream(), and refresh_buf().
|
private |
Definition at line 1337 of file oct-stream.cc.
Referenced by delimited_stream(), read(), and refresh_buf().
|
private |
Definition at line 1359 of file oct-stream.cc.
Referenced by get_undelim(), read(), and refresh_buf().
|
private |
Definition at line 1365 of file oct-stream.cc.
Referenced by refresh_buf().
|
private |
Definition at line 1353 of file oct-stream.cc.
Referenced by delimited_stream(), get_undelim(), read(), and refresh_buf().
|
private |
Definition at line 1373 of file oct-stream.cc.
|
private |
Definition at line 1340 of file oct-stream.cc.
Referenced by ~delimited_stream(), and refresh_buf().
|
private |
Definition at line 1346 of file oct-stream.cc.
Referenced by delimited_stream(), ~delimited_stream(), get_undelim(), read(), and refresh_buf().
|
private |
Definition at line 1350 of file oct-stream.cc.
Referenced by get_undelim(), read(), and refresh_buf().
|
private |
Definition at line 1362 of file oct-stream.cc.
Referenced by refresh_buf().
|
private |
Definition at line 1356 of file oct-stream.cc.
Referenced by ~delimited_stream(), and refresh_buf().
|
private |
Definition at line 1371 of file oct-stream.cc.
Referenced by delimited_stream(), and refresh_buf().