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 * | 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 |
char * | m_progress_marker |
Definition at line 1223 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 1365 of file oct-stream.cc.
References m_buf, m_bufsize, m_eob, m_idx, m_progress_marker, and refresh_buf().
octave::delimited_stream::delimited_stream | ( | std::istream & | is, |
const delimited_stream & | ds | ||
) |
Definition at line 1381 of file oct-stream.cc.
|
delete |
octave::delimited_stream::~delimited_stream | ( | void | ) |
Definition at line 1386 of file oct-stream.cc.
References eof(), m_buf, m_buf_in_file, m_i_stream, and m_idx.
|
inline |
Definition at line 1309 of file oct-stream.cc.
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 1294 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 1303 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 1243 of file oct-stream.cc.
Referenced by getline(), and octave::textscan::scan_one().
|
inline |
Definition at line 1255 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 1403 of file oct-stream.cc.
References eof(), m_delimited, m_eob, m_idx, m_last, refresh_buf(), 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 len.
Referenced by octave::textscan_format_list::read_first_row().
|
inline |
Definition at line 1320 of file oct-stream.cc.
Referenced by octave::textscan_format_list::read_first_row().
|
inline |
Definition at line 1300 of file oct-stream.cc.
|
delete |
|
inline |
Definition at line 1270 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 1437 of file oct-stream.cc.
References get_undelim(), and putback().
Referenced by octave::textscan::scan_qstring(), octave::textscan::skip_delim(), and octave::textscan::skip_whitespace().
|
inline |
Definition at line 1318 of file oct-stream.cc.
Referenced by octave::textscan_format_list::read_first_row().
|
inline |
Definition at line 1280 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 1305 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 eof(), get_undelim(), m_buf, m_bufsize, m_delimited, m_eob, m_idx, m_last, and refresh_buf().
Referenced by octave::textscan::lookahead(), octave::textscan::scan_complex(), and octave::textscan::skip_whitespace().
int octave::delimited_stream::refresh_buf | ( | void | ) |
Definition at line 1451 of file oct-stream.cc.
References eof(), m_buf, m_buf_in_file, m_bufsize, m_delimited, m_delims, m_eob, m_i_stream, m_idx, m_last, m_longest, and m_progress_marker.
Referenced by delimited_stream(), get_undelim(), and read().
|
inline |
Definition at line 1292 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 1307 of file oct-stream.cc.
Referenced by get_undelim(), octave::textscan::match_literal(), octave::textscan::read_double(), and octave::textscan::read_format_once().
|
inline |
Definition at line 1290 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 1331 of file oct-stream.cc.
Referenced by delimited_stream(), ~delimited_stream(), read(), and refresh_buf().
|
private |
Definition at line 1353 of file oct-stream.cc.
Referenced by ~delimited_stream(), and refresh_buf().
|
private |
Definition at line 1325 of file oct-stream.cc.
Referenced by delimited_stream(), read(), and refresh_buf().
|
private |
Definition at line 1344 of file oct-stream.cc.
Referenced by get_undelim(), read(), and refresh_buf().
|
private |
Definition at line 1350 of file oct-stream.cc.
Referenced by refresh_buf().
|
private |
Definition at line 1341 of file oct-stream.cc.
Referenced by delimited_stream(), get_undelim(), read(), and refresh_buf().
|
private |
Definition at line 1358 of file oct-stream.cc.
|
private |
Definition at line 1328 of file oct-stream.cc.
Referenced by ~delimited_stream(), and refresh_buf().
|
private |
Definition at line 1334 of file oct-stream.cc.
Referenced by delimited_stream(), ~delimited_stream(), get_undelim(), read(), and refresh_buf().
|
private |
Definition at line 1338 of file oct-stream.cc.
Referenced by get_undelim(), read(), and refresh_buf().
|
private |
Definition at line 1347 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().