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_file_ptr_buf Class Reference

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

Inheritance diagram for c_file_ptr_buf:
Inheritance graph
Collaboration diagram for c_file_ptr_buf:
Collaboration graph

Public Types

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

Public Member Functions

 c_file_ptr_buf (FILE *f_arg, close_fcn cf_arg=file_close)
 ~c_file_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)
FILE * 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 (FILE *f)

Protected Attributes

close_fcn cf
FILE * f

Private Member Functions

 c_file_ptr_buf (const c_file_ptr_buf &)
c_file_ptr_bufoperator= (const c_file_ptr_buf &)
int_type underflow_common (bool)

Detailed Description

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

Member Typedef Documentation

typedef int(* c_file_ptr_buf::close_fcn)(FILE *)

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

typedef std::streambuf::int_type c_file_ptr_buf::int_type

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

Constructor & Destructor Documentation

c_file_ptr_buf::c_file_ptr_buf ( FILE *  f_arg,
close_fcn  cf_arg = file_close 

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

c_file_ptr_buf::~c_file_ptr_buf ( void  )

Definition at line 45 of file

References buf_close().

c_file_ptr_buf::c_file_ptr_buf ( const c_file_ptr_buf )

Member Function Documentation

int c_file_ptr_buf::buf_close ( void  )

Definition at line 154 of file

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

Referenced by ~c_file_ptr_buf().

void c_file_ptr_buf::clear ( void  )

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

References f.

int c_file_ptr_buf::file_close ( FILE *  f)

Definition at line 182 of file

References fclose().

int c_file_ptr_buf::file_number ( ) const

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

References f.

int c_file_ptr_buf::flush ( void  )

Definition at line 148 of file

References f, and fflush.

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

c_file_ptr_buf& c_file_ptr_buf::operator= ( const c_file_ptr_buf )
c_file_ptr_buf::int_type c_file_ptr_buf::overflow ( int_type  c)

Definition at line 53 of file

References f, and flush().

c_file_ptr_buf::int_type c_file_ptr_buf::pbackfail ( int_type  c)

Definition at line 78 of file

References f.

int c_file_ptr_buf::seek ( off_t  offset,
int  origin 

Definition at line 170 of file

References f, and octave_fseeko_wrapper().

std::streampos c_file_ptr_buf::seekoff ( std::streamoff  offset,
std::ios::seekdir  dir,
std::ios::openmode  = std::ios::in | std::ios::out 
std::streampos c_file_ptr_buf::seekpos ( std::streampos  offset,
std::ios::openmode  = std::ios::in | std::ios::out 

Definition at line 127 of file

References f, octave_fseeko_wrapper(), octave_ftello_wrapper(), and SEEK_SET.

FILE* c_file_ptr_buf::stdiofile ( void  )

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

References f.

int c_file_ptr_buf::sync ( void  )

Definition at line 140 of file

References flush().

off_t c_file_ptr_buf::tell ( void  )

Definition at line 176 of file

References f, and octave_ftello_wrapper().

int_type c_file_ptr_buf::uflow ( void  )

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

Referenced by dqagie(), dqagpe(), dqk15i(), dqk21(), qagie(), qagpe(), qk15i(), and qk21().

int_type c_file_ptr_buf::underflow ( void  )

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

c_file_ptr_buf::int_type c_file_ptr_buf::underflow_common ( bool  bump)

Definition at line 62 of file

References c, and f.

std::streamsize c_file_ptr_buf::xsgetn ( char *  s,
std::streamsize  n 

Definition at line 94 of file

References f.

std::streamsize c_file_ptr_buf::xsputn ( const char *  s,
std::streamsize  n 

Definition at line 85 of file

References f.

Member Data Documentation

close_fcn c_file_ptr_buf::cf

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

Referenced by buf_close().

FILE* c_file_ptr_buf::f

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