GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
base_strstream Class Referenceabstract

#include "oct-strstrm.h"

Inheritance diagram for base_strstream:
Collaboration diagram for base_strstream:

Public Member Functions

 base_strstream (const base_strstream &)=delete
 
 base_strstream (std::ios::openmode m=std::ios::out, mach_info::float_format ff=mach_info::native_float_format(), const std::string &encoding="utf-8")
 
virtual bool bad (void) const =0
 
virtual void clear (void)=0
 
std::string name (void) const
 
base_strstreamoperator= (const base_strstream &)=delete
 
virtual std::streambuf * rdbuf (void)=0
 
int seek (off_t, int)
 
virtual off_t tell (void)
 

Protected Member Functions

 ~base_strstream (void)=default
 

Detailed Description

Definition at line 38 of file oct-strstrm.h.

Constructor & Destructor Documentation

◆ base_strstream() [1/2]

base_strstream::base_strstream ( std::ios::openmode  m = std::ios::out,
mach_info::float_format  ff = mach_info::native_float_format (),
const std::string &  encoding = "utf-8" 
)
inline

Definition at line 43 of file oct-strstrm.h.

◆ base_strstream() [2/2]

base_strstream::base_strstream ( const base_strstream )
delete

◆ ~base_strstream()

base_strstream::~base_strstream ( void  )
protecteddefault

Member Function Documentation

◆ bad()

virtual bool base_strstream::bad ( void  ) const
pure virtual

Implemented in istrstream, and ostrstream.

◆ clear()

virtual void base_strstream::clear ( void  )
pure virtual

Implemented in istrstream, and ostrstream.

◆ name()

std::string base_strstream::name ( void  ) const
inline

Definition at line 71 of file oct-strstrm.h.

◆ operator=()

base_strstream & base_strstream::operator= ( const base_strstream )
delete

◆ rdbuf()

virtual std::streambuf * base_strstream::rdbuf ( void  )
pure virtual

Implemented in istrstream, and ostrstream.

◆ seek()

OCTAVE_NAMESPACE_BEGIN int base_strstream::seek ( off_t  ,
int   
)

Definition at line 37 of file oct-strstrm.cc.

References error().

◆ tell()

off_t base_strstream::tell ( void  )
virtual

Reimplemented in istrstream.

Definition at line 48 of file oct-strstrm.cc.

References error().


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