GNU Octave  4.2.1
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 Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | List of all members
c_zfile_ptr_buf Class Reference

#include "c-file-ptr-stream.h"

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

Public Types

typedef int(* close_fcn )(gzFile)
 
typedef std::streambuf::int_type int_type
 

Public Member Functions

 c_zfile_ptr_buf (gzFile f_arg, close_fcn cf_arg=file_close)
 
 ~c_zfile_ptr_buf (void)
 
int buf_close (void)
 
void clear (void)
 
int file_number () const
 
int flush (void)
 
int_type overflow (int_type)
 
int_type pbackfail (int_type)
 
int seek (off_t offset, int origin)
 
std::streampos seekoff (std::streamoff, std::ios::seekdir, std::ios::openmode=std::ios::in|std::ios::out)
 
std::streampos seekpos (std::streampos, std::ios::openmode=std::ios::in|std::ios::out)
 
gzFile stdiofile (void)
 
int sync (void)
 
off_t tell (void)
 
int_type uflow (void)
 
int_type underflow (void)
 
std::streamsize xsgetn (char *, std::streamsize)
 
std::streamsize xsputn (const char *, std::streamsize)
 

Static Public Member Functions

static int file_close (gzFile f)
 

Protected Attributes

close_fcn cf
 
gzFile f
 

Private Member Functions

 c_zfile_ptr_buf (const c_zfile_ptr_buf &)
 
c_zfile_ptr_bufoperator= (const c_zfile_ptr_buf &)
 
int_type underflow_common (bool)
 

Detailed Description

Definition at line 148 of file c-file-ptr-stream.h.

Member Typedef Documentation

typedef int(* c_zfile_ptr_buf::close_fcn)(gzFile)

Definition at line 155 of file c-file-ptr-stream.h.

typedef std::streambuf::int_type c_zfile_ptr_buf::int_type

Definition at line 153 of file c-file-ptr-stream.h.

Constructor & Destructor Documentation

c_zfile_ptr_buf::c_zfile_ptr_buf ( gzFile  f_arg,
close_fcn  cf_arg = file_close 
)
inline

Definition at line 159 of file c-file-ptr-stream.h.

c_zfile_ptr_buf::~c_zfile_ptr_buf ( void  )

Definition at line 189 of file c-file-ptr-stream.cc.

References buf_close().

c_zfile_ptr_buf::c_zfile_ptr_buf ( const c_zfile_ptr_buf )
private

Member Function Documentation

int c_zfile_ptr_buf::buf_close ( void  )

Definition at line 301 of file c-file-ptr-stream.cc.

References cf, f, flush(), and retval.

Referenced by ~c_zfile_ptr_buf().

void c_zfile_ptr_buf::clear ( void  )
inline

Definition at line 196 of file c-file-ptr-stream.h.

References f.

static int c_zfile_ptr_buf::file_close ( gzFile  f)
inlinestatic

Definition at line 198 of file c-file-ptr-stream.h.

int c_zfile_ptr_buf::file_number ( ) const
inline

Definition at line 189 of file c-file-ptr-stream.h.

int c_zfile_ptr_buf::flush ( void  )

Definition at line 291 of file c-file-ptr-stream.cc.

References f.

Referenced by buf_close(), overflow(), and sync().

c_zfile_ptr_buf& c_zfile_ptr_buf::operator= ( const c_zfile_ptr_buf )
private
c_zfile_ptr_buf::int_type c_zfile_ptr_buf::overflow ( int_type  c)

Definition at line 197 of file c-file-ptr-stream.cc.

References f, and flush().

c_zfile_ptr_buf::int_type c_zfile_ptr_buf::pbackfail ( int_type  c)

Definition at line 222 of file c-file-ptr-stream.cc.

References f.

int c_zfile_ptr_buf::seek ( off_t  offset,
int  origin 
)
inline

Definition at line 191 of file c-file-ptr-stream.h.

References f.

std::streampos c_zfile_ptr_buf::seekoff ( std::streamoff  ,
std::ios::seekdir  ,
std::ios::openmode  = std::ios::in | std::ios::out 
)

Definition at line 247 of file c-file-ptr-stream.cc.

References f, and seekdir_to_whence().

std::streampos c_zfile_ptr_buf::seekpos ( std::streampos  ,
std::ios::openmode  = std::ios::in | std::ios::out 
)

Definition at line 266 of file c-file-ptr-stream.cc.

References f, and SEEK_SET.

gzFile c_zfile_ptr_buf::stdiofile ( void  )
inline

Definition at line 157 of file c-file-ptr-stream.h.

References f.

int c_zfile_ptr_buf::sync ( void  )

Definition at line 283 of file c-file-ptr-stream.cc.

References flush().

off_t c_zfile_ptr_buf::tell ( void  )
inline

Definition at line 194 of file c-file-ptr-stream.h.

References f.

int_type c_zfile_ptr_buf::uflow ( void  )
inline

Definition at line 169 of file c-file-ptr-stream.h.

int_type c_zfile_ptr_buf::underflow ( void  )
inline

Definition at line 167 of file c-file-ptr-stream.h.

c_zfile_ptr_buf::int_type c_zfile_ptr_buf::underflow_common ( bool  bump)
private

Definition at line 206 of file c-file-ptr-stream.cc.

References c, and f.

std::streamsize c_zfile_ptr_buf::xsgetn ( char *  s,
std::streamsize  n 
)

Definition at line 238 of file c-file-ptr-stream.cc.

References f.

std::streamsize c_zfile_ptr_buf::xsputn ( const char *  s,
std::streamsize  n 
)

Definition at line 229 of file c-file-ptr-stream.cc.

References f.

Member Data Documentation

close_fcn c_zfile_ptr_buf::cf
protected

Definition at line 204 of file c-file-ptr-stream.h.

Referenced by buf_close().

gzFile c_zfile_ptr_buf::f
protected

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