GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
istream Class Reference

#include "oct-iostrm.h"

Inheritance diagram for istream:
base_iostream base_stream

Public Member Functions

 istream (std::istream *arg=nullptr, const std::string &n="")
 
bool eof () const
 
std::istream * input_stream ()
 
std::ostream * output_stream ()
 
- Public Member Functions inherited from base_iostream
 base_iostream (const std::string &n="", std::ios::openmode m=std::ios::in|std::ios::out, mach_info::float_format ff=mach_info::native_float_format())
 
std::string name () const
 
int seek (off_t offset, int origin)
 
off_t tell ()
 
- Public Member Functions inherited from base_stream
 base_stream (std::ios::openmode arg_md=std::ios::in|std::ios::out, mach_info::float_format ff=mach_info::native_float_format(), const std::string &encoding="utf-8")
 
virtual ~base_stream ()=default
 
void close ()
 
virtual void do_close ()
 
std::string error (bool clear, int &err_num)
 
virtual int file_number () const
 
bool is_open () const
 
bool ok () const
 
std::ostream * preferred_output_stream ()
 

Static Public Member Functions

static stream create (std::istream *arg=nullptr, const std::string &n="")
 

Protected Member Functions

 ~istream ()=default
 
- Protected Member Functions inherited from base_iostream
 ~base_iostream ()=default
 
void invalid_operation () const
 
- Protected Member Functions inherited from base_stream
void clear ()
 
void clearerr ()
 
std::string encoding () const
 
void error (const std::string &msg)
 
void error (const std::string &who, const std::string &msg)
 
mach_info::float_format float_format () const
 
int mode () const
 

Detailed Description

Definition at line 82 of file oct-iostrm.h.

Constructor & Destructor Documentation

◆ istream()

istream::istream ( std::istream *  arg = nullptr,
const std::string &  n = "" 
)
inline

Definition at line 87 of file oct-iostrm.h.

◆ ~istream()

istream::~istream ( )
protecteddefault

Member Function Documentation

◆ create()

octave::stream istream::create ( std::istream *  arg = nullptr,
const std::string &  n = "" 
)
static

Definition at line 81 of file oct-iostrm.cc.

References n.

Referenced by stream_list::stream_list().

◆ eof()

bool istream::eof ( ) const
virtual

Reimplemented from base_iostream.

Definition at line 75 of file oct-iostrm.cc.

◆ input_stream()

std::istream* istream::input_stream ( )
inlinevirtual

Reimplemented from base_stream.

Definition at line 101 of file oct-iostrm.h.

◆ output_stream()

std::ostream* istream::output_stream ( )
inlinevirtual

Reimplemented from base_stream.

Definition at line 103 of file oct-iostrm.h.


The documentation for this class was generated from the following files: