GNU Octave 7.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:
Collaboration diagram for ostream:

Public Member Functions

 ostream (std::ostream *arg, const std::string &n="")
 
bool eof (void) const
 
std::istream * input_stream (void)
 
std::string name (void) const
 
std::ostream * output_stream (void)
 
int seek (off_t offset, int origin)
 
off_t tell (void)
 

Static Public Member Functions

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

Protected Member Functions

 ~ostream (void)=default
 
void invalid_operation (void) const
 

Private Member Functions

 ostream (const ostream &)=delete
 
ostreamoperator= (const ostream &)=delete
 
const char * stream_type (void) const
 

Private Attributes

std::string m_name
 
std::ostream * m_ostream
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ostream() [1/2]

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

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

◆ ~ostream()

ostream::~ostream ( void  )
protecteddefault

◆ ostream() [2/2]

ostream::ostream ( const ostream )
privatedelete

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.

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

◆ eof()

bool ostream::eof ( void  ) const

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

References m_ostream.

◆ input_stream()

std::istream * ostream::input_stream ( void  )
inline

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

◆ invalid_operation()

void base_iostream::invalid_operation ( void  ) const
protectedinherited

◆ name()

std::string base_iostream::name ( void  ) const
inlineinherited

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

◆ operator=()

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

◆ output_stream()

std::ostream * ostream::output_stream ( void  )
inline

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

◆ seek()

OCTAVE_NAMESPACE_BEGIN int base_iostream::seek ( off_t  offset,
int  origin 
)
inherited

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

References base_iostream::invalid_operation().

◆ stream_type()

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

Implements base_iostream.

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

◆ tell()

off_t base_iostream::tell ( void  )
inherited

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

References base_iostream::invalid_operation().

Member Data Documentation

◆ m_name

std::string base_iostream::m_name
privateinherited

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

◆ m_ostream

std::ostream* ostream::m_ostream
private

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

Referenced by eof().


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