GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
octave_istrstream Class Reference

#include "oct-strstrm.h"

Inheritance diagram for octave_istrstream:
Inheritance graph
[legend]
Collaboration diagram for octave_istrstream:
Collaboration graph
[legend]

Public Member Functions

 octave_istrstream (const char *data, std::ios::openmode arg_md=std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format())
 octave_istrstream (const std::string &data, std::ios::openmode arg_md=std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format())
bool bad (void) const
void clear (void)
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)
std::streambuf * rdbuf (void)
int seek (off_t, int)
off_t tell (void)

Static Public Member Functions

static octave_stream create (const char *data, std::ios::openmode arg_md=std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format())
static octave_stream create (const std::string &data, std::ios::openmode arg_md=std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format())

Protected Member Functions

 ~octave_istrstream (void)
void clearerr (void)
void error (const std::string &msg)
void error (const std::string &who, const std::string &msg)
oct_mach_info::float_format float_format (void) const
int mode (void) const

Private Member Functions

 octave_istrstream (const octave_istrstream &)
octave_istrstreamoperator= (const octave_istrstream &)

Private Attributes

std::istringstream is

Detailed Description

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

Constructor & Destructor Documentation

octave_istrstream::octave_istrstream ( const char data,
std::ios::openmode  arg_md = std::ios::out,
oct_mach_info::float_format  ff = oct_mach_info::native_float_format () 
)
inline

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

octave_istrstream::octave_istrstream ( const std::string &  data,
std::ios::openmode  arg_md = std::ios::out,
oct_mach_info::float_format  ff = oct_mach_info::native_float_format () 
)
inline

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

octave_istrstream::~octave_istrstream ( void  )
inlineprotected

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

octave_istrstream::octave_istrstream ( const octave_istrstream )
private

Member Function Documentation

bool octave_istrstream::bad ( void  ) const
inlinevirtual

Implements octave_base_strstream.

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

void octave_istrstream::clear ( void  )
inlinevirtual

Implements octave_base_strstream.

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

void octave_base_stream::clearerr ( void  )
protectedinherited
void octave_base_stream::close ( void  )
inlineinherited

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

References octave_stream::is_open().

Referenced by octave_stream::close().

octave_stream octave_istrstream::create ( const char data,
std::ios::openmode  arg_md = std::ios::out,
oct_mach_info::float_format  ff = oct_mach_info::native_float_format () 
)
static

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

References octave_base_stream::octave_stream.

Referenced by Fsscanf().

octave_stream octave_istrstream::create ( const std::string &  data,
std::ios::openmode  arg_md = std::ios::out,
oct_mach_info::float_format  ff = oct_mach_info::native_float_format () 
)
static

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

References octave_base_stream::octave_stream.

virtual void octave_base_stream::do_close ( void  )
inlinevirtualinherited
bool octave_istrstream::eof ( void  ) const
inlinevirtual

Implements octave_base_stream.

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

std::string octave_base_stream::error ( bool  clear,
int err_num 
)
inherited
void octave_base_stream::error ( const std::string &  msg)
protectedinherited

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

References octave_base_stream::errmsg, and octave_base_stream::fail.

void octave_base_stream::error ( const std::string &  who,
const std::string &  msg 
)
protectedinherited

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

References octave_base_stream::errmsg, and octave_base_stream::fail.

virtual int octave_base_stream::file_number ( void  ) const
inlinevirtualinherited
oct_mach_info::float_format octave_base_stream::float_format ( void  ) const
inlineprotectedinherited

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

Referenced by octave_stream::float_format().

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

Reimplemented from octave_base_stream.

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

bool octave_base_stream::is_open ( void  ) const
inlineinherited

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

Referenced by octave_stream::is_open().

int octave_base_stream::mode ( void  ) const
inlineprotectedinherited
std::string octave_base_strstream::name ( void  ) const
inlinevirtualinherited

Implements octave_base_stream.

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

bool octave_base_stream::ok ( void  ) const
inlineinherited
octave_istrstream& octave_istrstream::operator= ( const octave_istrstream )
private
std::ostream* octave_istrstream::output_stream ( void  )
inlinevirtual

Reimplemented from octave_base_stream.

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

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

Implements octave_base_strstream.

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

int octave_base_strstream::seek ( off_t  ,
int   
)
virtualinherited

Implements octave_base_stream.

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

References octave_base_stream::error().

off_t octave_istrstream::tell ( void  )
inlinevirtual

Reimplemented from octave_base_strstream.

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

Member Data Documentation

std::istringstream octave_istrstream::is
private

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


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