GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "oct-strstrm.h"
Public Member Functions | |
octave_base_strstream (std::ios::openmode m=std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format()) | |
virtual bool | bad (void) const =0 |
virtual void | clear (void)=0 |
void | close (void) |
virtual void | do_close (void) |
virtual bool | eof (void) const =0 |
std::string | error (bool clear, int &err_num) |
virtual int | file_number (void) const |
virtual std::istream * | input_stream (void) |
bool | is_open (void) const |
std::string | name (void) const |
bool | ok (void) const |
virtual std::ostream * | output_stream (void) |
virtual std::streambuf * | rdbuf (void)=0 |
int | seek (off_t, int) |
virtual off_t | tell (void) |
Protected Member Functions | |
~octave_base_strstream (void) | |
void | clearerr (void) |
void | error (const std::string &msg) |
void | error (const std::string &who, const std::string &msg) |
oct_mach_info::float_format | float_format (void) const |
int | mode (void) const |
Private Member Functions | |
octave_base_strstream (const octave_base_strstream &) | |
octave_base_strstream & | operator= (const octave_base_strstream &) |
Definition at line 31 of file oct-strstrm.h.
|
inline |
Definition at line 36 of file oct-strstrm.h.
|
inlineprotected |
Definition at line 61 of file oct-strstrm.h.
|
private |
|
pure virtual |
Implemented in octave_ostrstream, and octave_istrstream.
|
pure virtual |
Implemented in octave_ostrstream, and octave_istrstream.
|
protectedinherited |
Definition at line 913 of file oct-stream.cc.
References octave_base_stream::input_stream(), and octave_base_stream::output_stream().
Referenced by octave_stream::clearerr().
|
inlineinherited |
Definition at line 381 of file oct-stream.h.
References octave_stream::is_open().
Referenced by octave_stream::close().
|
inlinevirtualinherited |
Reimplemented in octave_tstdiostream< BUF_T, STREAM_T, FILE_T >, octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE * >, octave_tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >, and octave_fstream.
Definition at line 379 of file oct-stream.h.
|
pure virtualinherited |
Implemented in octave_ostrstream, octave_ostream, octave_istrstream, octave_istream, octave_fstream, octave_tstdiostream< BUF_T, STREAM_T, FILE_T >, octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE * >, octave_tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >, and octave_base_iostream.
Referenced by octave_stream::eof().
Definition at line 2801 of file oct-stream.cc.
References octave_base_stream::clear(), octave_base_stream::errmsg, and octave_base_stream::fail.
Referenced by octave_base_stream::do_gets(), octave_base_stream::do_numeric_printf_conv(), octave_base_stream::do_oscanf(), octave_base_stream::do_printf(), octave_base_stream::do_scanf(), octave_stream::error(), octave_base_iostream::invalid_operation(), octave_base_stream::invalid_operation(), octave_fstream::octave_fstream(), octave_base_stream::oscanf(), octave_base_stream::printf(), octave_base_stream::puts(), octave_base_stream::scanf(), seek(), octave_fstream::seek(), octave_base_stream::skipl(), tell(), and octave_fstream::tell().
|
protectedinherited |
Definition at line 892 of file oct-stream.cc.
References octave_base_stream::errmsg, and octave_base_stream::fail.
|
protectedinherited |
Definition at line 899 of file oct-stream.cc.
References octave_base_stream::errmsg, and octave_base_stream::fail.
|
inlinevirtualinherited |
Reimplemented in octave_tstdiostream< BUF_T, STREAM_T, FILE_T >, octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE * >, and octave_tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >.
Definition at line 390 of file oct-stream.h.
References octave_stream::name().
Referenced by octave_base_stream::do_gets(), octave_base_stream::do_scanf(), octave_stream::file_number(), and octave_base_stream::skipl().
|
inlineprotectedinherited |
Definition at line 414 of file oct-stream.h.
Referenced by octave_stream::float_format().
|
inlinevirtualinherited |
Reimplemented in octave_ostrstream, octave_ostream, octave_istrstream, octave_istream, octave_fstream, octave_tstdiostream< BUF_T, STREAM_T, FILE_T >, octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE * >, and octave_tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >.
Definition at line 367 of file oct-stream.h.
Referenced by octave_base_stream::clearerr(), octave_base_stream::do_gets(), octave_base_stream::do_oscanf(), octave_base_stream::do_scanf(), octave_stream::input_stream(), octave_base_stream::oscanf(), octave_base_stream::scanf(), and octave_base_stream::skipl().
|
inlineinherited |
Definition at line 377 of file oct-stream.h.
Referenced by octave_stream::is_open().
|
inlineprotectedinherited |
Definition at line 412 of file oct-stream.h.
Referenced by octave_fstream::input_stream(), octave_stream::mode(), and octave_fstream::output_stream().
|
inlinevirtual |
Implements octave_base_stream.
Definition at line 51 of file oct-strstrm.h.
|
inlineinherited |
Definition at line 404 of file oct-stream.h.
Referenced by octave_base_stream::do_oscanf(), octave_base_stream::do_scanf(), octave_stream::ok(), and octave_base_stream::oscanf().
|
private |
|
inlinevirtualinherited |
Reimplemented in octave_ostrstream, octave_ostream, octave_istrstream, octave_istream, octave_fstream, octave_tstdiostream< BUF_T, STREAM_T, FILE_T >, octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE * >, and octave_tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >.
Definition at line 373 of file oct-stream.h.
Referenced by octave_base_stream::clearerr(), octave_base_stream::do_printf(), octave_base_stream::flush(), octave_stream::output_stream(), and octave_base_stream::puts().
|
pure virtual |
Implemented in octave_ostrstream, and octave_istrstream.
Implements octave_base_stream.
Definition at line 32 of file oct-strstrm.cc.
References octave_base_stream::error().
|
virtual |
Implements octave_base_stream.
Reimplemented in octave_istrstream.
Definition at line 41 of file oct-strstrm.cc.
References octave_base_stream::error().