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

#include "oct-strstrm.h"

Inheritance diagram for istrstream:
base_strstream base_stream

Public Member Functions

 istrstream (const char *data, std::ios::openmode arg_md=std::ios::out, mach_info::float_format ff=mach_info::native_float_format(), const std::string &encoding="utf-8")
 
 istrstream (const std::string &data, 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 () const
 
void clear ()
 
bool eof () const
 
std::istream * input_stream ()
 
std::ostream * output_stream ()
 
std::streambuf * rdbuf ()
 
off_t tell ()
 
- Public Member Functions inherited from 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")
 
std::string name () const
 
int seek (off_t, int)
 
- 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 (const char *data, 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 stream create (const std::string &data, 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

 ~istrstream ()=default
 
- Protected Member Functions inherited from base_strstream
 ~base_strstream ()=default
 
- 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 76 of file oct-strstrm.h.

Constructor & Destructor Documentation

◆ istrstream() [1/2]

istrstream::istrstream ( const char *  data,
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 81 of file oct-strstrm.h.

◆ istrstream() [2/2]

istrstream::istrstream ( const std::string &  data,
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 87 of file oct-strstrm.h.

◆ ~istrstream()

istrstream::~istrstream ( )
protecteddefault

Member Function Documentation

◆ bad()

bool istrstream::bad ( ) const
inlinevirtual

Implements base_strstream.

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

◆ clear()

void istrstream::clear ( )
inlinevirtual

Implements base_strstream.

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

◆ create() [1/2]

stream istrstream::create ( const char *  data,
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 57 of file oct-strstrm.cc.

References base_stream::encoding(), and base_stream::stream.

◆ create() [2/2]

stream istrstream::create ( const std::string &  data,
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 65 of file oct-strstrm.cc.

References base_stream::encoding(), and base_stream::stream.

◆ eof()

bool istrstream::eof ( ) const
inlinevirtual

Implements base_stream.

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

◆ input_stream()

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

Reimplemented from base_stream.

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

◆ output_stream()

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

Reimplemented from base_stream.

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

◆ rdbuf()

std::streambuf* istrstream::rdbuf ( )
inlinevirtual

Implements base_strstream.

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

◆ tell()

off_t istrstream::tell ( )
inlinevirtual

Reimplemented from base_strstream.

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


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