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

#include "oct-strstrm.h"

Inheritance diagram for ostrstream:
Collaboration diagram for ostrstream:

Public Member Functions

 ostrstream (const ostrstream &)=delete
 
 ostrstream (std::ios::openmode arg_md=std::ios::out, mach_info::float_format ff=mach_info::native_float_format(), const std::string &encoding="utf-8")
 
bool bad (void) const
 
void clear (void)
 
bool eof (void) const
 
std::istream * input_stream (void)
 
std::string name (void) const
 
ostrstreamoperator= (const ostrstream &)=delete
 
std::ostream * output_stream (void)
 
std::streambuf * rdbuf (void)
 
int seek (off_t, int)
 
std::string str (void)
 
virtual off_t tell (void)
 

Static Public Member Functions

static stream create (std::ios::openmode arg_md=std::ios::out, mach_info::float_format ff=mach_info::native_float_format(), const std::string &encoding="utf-8")
 

Protected Member Functions

 ~ostrstream (void)=default
 

Private Attributes

std::ostringstream m_ostream
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ostrstream() [1/2]

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

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

◆ ostrstream() [2/2]

ostrstream::ostrstream ( const ostrstream )
delete

◆ ~ostrstream()

ostrstream::~ostrstream ( void  )
protecteddefault

Member Function Documentation

◆ bad()

bool ostrstream::bad ( void  ) const
inlinevirtual

Implements base_strstream.

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

◆ clear()

void ostrstream::clear ( void  )
inlinevirtual

Implements base_strstream.

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

◆ create()

stream ostrstream::create ( std::ios::openmode  arg_md = std::ios::out,
mach_info::float_format  ff = mach_info::native_float_format (),
const std::string &  encoding = "utf-8" 
)
static

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

◆ eof()

bool ostrstream::eof ( void  ) const
inline

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

◆ input_stream()

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

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

◆ name()

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

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

◆ operator=()

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

◆ output_stream()

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

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

◆ rdbuf()

std::streambuf * ostrstream::rdbuf ( void  )
inlinevirtual

Implements base_strstream.

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

◆ seek()

OCTAVE_NAMESPACE_BEGIN int base_strstream::seek ( off_t  ,
int   
)
inherited

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

References error().

◆ str()

std::string ostrstream::str ( void  )
inline

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

Referenced by Fsprintf().

◆ tell()

off_t base_strstream::tell ( void  )
virtualinherited

Reimplemented in istrstream.

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

References error().

Member Data Documentation

◆ m_ostream

std::ostringstream ostrstream::m_ostream
private

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


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