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

#include "oct-iostrm.h"

Inheritance diagram for ostream:
base_iostream base_stream

Public Member Functions

 ostream (std::ostream *arg, 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::ostream *arg, const std::string &n="")
 

Protected Member Functions

 ~ostream ()=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 116 of file oct-iostrm.h.

Constructor & Destructor Documentation

◆ ostream()

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

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

◆ ~ostream()

ostream::~ostream ( )
protecteddefault

Member Function Documentation

◆ create()

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

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

References n.

Referenced by stream_list::stream_list().

◆ eof()

bool ostream::eof ( ) const
virtual

Reimplemented from base_iostream.

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

◆ input_stream()

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

Reimplemented from base_stream.

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

◆ output_stream()

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

Reimplemented from base_stream.

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


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