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

#include "oct-iostrm.h"

Inheritance diagram for octave_ostream:
Collaboration diagram for octave_ostream:

Public Member Functions

 octave_ostream (std::ostream *arg, const std::string &n="")
 
void close (void)
 
virtual void do_close (void)
 
bool eof (void) const
 
std::string error (bool clear, int &err_num)
 
virtual int file_number (void) const
 
std::istream * input_stream (void)
 
bool is_open (void) const
 
std::string name (void) const
 
bool ok (void) const
 
std::ostream * output_stream (void)
 
int seek (off_t offset, int origin)
 
off_t tell (void)
 

Static Public Member Functions

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

Protected Member Functions

 ~octave_ostream (void)=default
 
void clear (void)
 
void clearerr (void)
 
void error (const std::string &msg)
 
void error (const std::string &who, const std::string &msg)
 
mach_info::float_format float_format (void) const
 
void invalid_operation (void) const
 
int mode (void) const
 

Private Member Functions

 octave_ostream (const octave_ostream &)=delete
 
octave_ostreamoperator= (const octave_ostream &)=delete
 
const char * stream_type (void) const
 

Private Attributes

std::ostream * os
 

Detailed Description

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

Constructor & Destructor Documentation

◆ octave_ostream() [1/2]

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

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

◆ ~octave_ostream()

octave_ostream::~octave_ostream ( void  )
protecteddefault

◆ octave_ostream() [2/2]

octave_ostream::octave_ostream ( const octave_ostream )
privatedelete

Member Function Documentation

◆ clear()

void octave::base_stream::clear ( void  )
protectedinherited

◆ clearerr()

void octave::base_stream::clearerr ( void  )
protectedinherited

◆ close()

void octave::base_stream::close ( void  )
inlineinherited

Definition at line 120 of file oct-stream.h.

Referenced by octave::stream::close().

◆ create()

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

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

References arg.

Referenced by octave::stream_list::stream_list().

◆ do_close()

◆ eof()

bool octave_ostream::eof ( void  ) const
virtual

Reimplemented from octave_base_iostream.

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

References os.

◆ error() [1/3]

◆ error() [2/3]

void octave::base_stream::error ( const std::string msg)
protectedinherited

Definition at line 3954 of file oct-stream.cc.

References octave::base_stream::errmsg, and octave::base_stream::fail.

◆ error() [3/3]

void octave::base_stream::error ( const std::string who,
const std::string msg 
)
protectedinherited

Definition at line 3961 of file oct-stream.cc.

References octave::base_stream::errmsg, and octave::base_stream::fail.

◆ file_number()

◆ float_format()

mach_info::float_format octave::base_stream::float_format ( void  ) const
inlineprotectedinherited

Definition at line 153 of file oct-stream.h.

References flt_fmt.

Referenced by octave::stream::float_format().

◆ input_stream()

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

Reimplemented from octave::base_stream.

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

◆ invalid_operation()

void octave_base_iostream::invalid_operation ( void  ) const
protectedinherited

◆ is_open()

bool octave::base_stream::is_open ( void  ) const
inlineinherited

Definition at line 116 of file oct-stream.h.

Referenced by octave::stream::is_open().

◆ mode()

int octave::base_stream::mode ( void  ) const
inlineprotectedinherited

◆ name()

std::string octave_base_iostream::name ( void  ) const
inlinevirtualinherited

Implements octave::base_stream.

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

References nm.

◆ ok()

bool octave::base_stream::ok ( void  ) const
inlineinherited

◆ operator=()

octave_ostream& octave_ostream::operator= ( const octave_ostream )
privatedelete

◆ output_stream()

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

Reimplemented from octave::base_stream.

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

References os.

◆ seek()

int octave_base_iostream::seek ( off_t  offset,
int  origin 
)
virtualinherited

Implements octave::base_stream.

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

References octave_base_iostream::invalid_operation().

◆ stream_type()

const char* octave_ostream::stream_type ( void  ) const
inlineprivatevirtual

Implements octave_base_iostream.

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

◆ tell()

off_t octave_base_iostream::tell ( void  )
virtualinherited

Implements octave::base_stream.

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

References octave_base_iostream::invalid_operation().

Member Data Documentation

◆ os

std::ostream* octave_ostream::os
private

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

Referenced by eof().


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