GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
tstdiostream< BUF_T, STREAM_T, FILE_T > Class Template Reference

#include "oct-stdstrm.h"

Inheritance diagram for tstdiostream< BUF_T, STREAM_T, FILE_T >:
Collaboration diagram for tstdiostream< BUF_T, STREAM_T, FILE_T >:

Public Member Functions

 tstdiostream (const std::string &n, FILE_T f=0, int fid=0, std::ios::openmode m=std::ios::in|std::ios::out, mach_info::float_format ff=mach_info::native_float_format(), const std::string &encoding="utf-8", typename BUF_T::close_fcn cf=BUF_T::file_close)
 
 tstdiostream (const tstdiostream &)=delete
 
bool bad (void) const
 
void clear (void)
 
void do_close (void)
 
bool eof (void) const
 
int file_number (void) const
 
std::istream * input_stream (void)
 
std::string name (void) const
 
tstdiostreamoperator= (const tstdiostream &)=delete
 
std::ostream * output_stream (void)
 
BUF_T * rdbuf (void) const
 
int seek (off_t offset, int origin)
 
off_t tell (void)
 

Protected Member Functions

 ~tstdiostream (void)
 

Protected Attributes

int m_fnum
 
std::ios::openmode m_mode
 
std::string m_name
 
STREAM_Tm_stream
 

Detailed Description

template<typename BUF_T, typename STREAM_T, typename FILE_T>
class tstdiostream< BUF_T, STREAM_T, FILE_T >

Definition at line 39 of file oct-stdstrm.h.

Constructor & Destructor Documentation

◆ tstdiostream() [1/2]

template<typename BUF_T , typename STREAM_T , typename FILE_T >
tstdiostream< BUF_T, STREAM_T, FILE_T >::tstdiostream ( const std::string &  n,
FILE_T  f = 0,
int  fid = 0,
std::ios::openmode  m = std::ios::in | std::ios::out,
mach_info::float_format  ff = mach_info::native_float_format (),
const std::string &  encoding = "utf-8",
typename BUF_T::close_fcn  cf = BUF_T::file_close 
)
inline

Definition at line 44 of file oct-stdstrm.h.

◆ tstdiostream() [2/2]

template<typename BUF_T , typename STREAM_T , typename FILE_T >
tstdiostream< BUF_T, STREAM_T, FILE_T >::tstdiostream ( const tstdiostream< BUF_T, STREAM_T, FILE_T > &  )
delete

◆ ~tstdiostream()

template<typename BUF_T , typename STREAM_T , typename FILE_T >
tstdiostream< BUF_T, STREAM_T, FILE_T >::~tstdiostream ( void  )
inlineprotected

Definition at line 112 of file oct-stdstrm.h.

Member Function Documentation

◆ bad()

template<typename BUF_T , typename STREAM_T , typename FILE_T >
bool tstdiostream< BUF_T, STREAM_T, FILE_T >::bad ( void  ) const
inline

Definition at line 96 of file oct-stdstrm.h.

◆ clear()

template<typename BUF_T , typename STREAM_T , typename FILE_T >
void tstdiostream< BUF_T, STREAM_T, FILE_T >::clear ( void  )
inline

Definition at line 98 of file oct-stdstrm.h.

◆ do_close()

template<typename BUF_T , typename STREAM_T , typename FILE_T >
void tstdiostream< BUF_T, STREAM_T, FILE_T >::do_close ( void  )
inline

Definition at line 104 of file oct-stdstrm.h.

◆ eof()

template<typename BUF_T , typename STREAM_T , typename FILE_T >
bool tstdiostream< BUF_T, STREAM_T, FILE_T >::eof ( void  ) const
inline

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

◆ file_number()

template<typename BUF_T , typename STREAM_T , typename FILE_T >
int tstdiostream< BUF_T, STREAM_T, FILE_T >::file_number ( void  ) const
inline

Definition at line 94 of file oct-stdstrm.h.

◆ input_stream()

template<typename BUF_T , typename STREAM_T , typename FILE_T >
std::istream * tstdiostream< BUF_T, STREAM_T, FILE_T >::input_stream ( void  )
inline

Definition at line 78 of file oct-stdstrm.h.

◆ name()

template<typename BUF_T , typename STREAM_T , typename FILE_T >
std::string tstdiostream< BUF_T, STREAM_T, FILE_T >::name ( void  ) const
inline

Definition at line 76 of file oct-stdstrm.h.

◆ operator=()

template<typename BUF_T , typename STREAM_T , typename FILE_T >
tstdiostream & tstdiostream< BUF_T, STREAM_T, FILE_T >::operator= ( const tstdiostream< BUF_T, STREAM_T, FILE_T > &  )
delete

◆ output_stream()

template<typename BUF_T , typename STREAM_T , typename FILE_T >
std::ostream * tstdiostream< BUF_T, STREAM_T, FILE_T >::output_stream ( void  )
inline

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

◆ rdbuf()

template<typename BUF_T , typename STREAM_T , typename FILE_T >
BUF_T * tstdiostream< BUF_T, STREAM_T, FILE_T >::rdbuf ( void  ) const
inline

Definition at line 89 of file oct-stdstrm.h.

◆ seek()

template<typename BUF_T , typename STREAM_T , typename FILE_T >
int tstdiostream< BUF_T, STREAM_T, FILE_T >::seek ( off_t  offset,
int  origin 
)
inline

Definition at line 61 of file oct-stdstrm.h.

◆ tell()

template<typename BUF_T , typename STREAM_T , typename FILE_T >
off_t tstdiostream< BUF_T, STREAM_T, FILE_T >::tell ( void  )
inline

Definition at line 68 of file oct-stdstrm.h.

Member Data Documentation

◆ m_fnum

template<typename BUF_T , typename STREAM_T , typename FILE_T >
int tstdiostream< BUF_T, STREAM_T, FILE_T >::m_fnum
protected

Definition at line 123 of file oct-stdstrm.h.

◆ m_mode

template<typename BUF_T , typename STREAM_T , typename FILE_T >
std::ios::openmode tstdiostream< BUF_T, STREAM_T, FILE_T >::m_mode
protected

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

◆ m_name

template<typename BUF_T , typename STREAM_T , typename FILE_T >
std::string tstdiostream< BUF_T, STREAM_T, FILE_T >::m_name
protected

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

◆ m_stream

template<typename BUF_T , typename STREAM_T , typename FILE_T >
STREAM_T* tstdiostream< BUF_T, STREAM_T, FILE_T >::m_stream
protected

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


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