OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::gzstreambuf Class Reference

#include <gzstream.hpp>

Inheritance diagram for OpenMD::gzstreambuf:

Public Member Functions

 gzstreambuf ()
 
int is_open ()
 
gzstreambufopen (const char *name, int open_mode)
 
gzstreambufclose ()
 
 ~gzstreambuf ()
 
virtual int overflow (int c=EOF)
 
virtual int underflow ()
 
virtual int sync ()
 

Private Member Functions

int flush_buffer ()
 

Private Attributes

gzFile file
 
char buffer [bufferSize]
 
char opened
 
int mode
 

Static Private Attributes

static const int bufferSize = 47+256
 

Detailed Description

Definition at line 44 of file gzstream.hpp.

Constructor & Destructor Documentation

◆ gzstreambuf()

OpenMD::gzstreambuf::gzstreambuf ( )
inline

Definition at line 56 of file gzstream.hpp.

◆ ~gzstreambuf()

OpenMD::gzstreambuf::~gzstreambuf ( )
inline

Definition at line 66 of file gzstream.hpp.

References close(), overflow(), sync(), and underflow().

Member Function Documentation

◆ close()

gzstreambuf * OpenMD::gzstreambuf::close ( )

Definition at line 66 of file gzstream.cpp.

References file, is_open(), opened, and sync().

Referenced by OpenMD::gzstreambase::gzstreambase(), is_open(), and ~gzstreambuf().

◆ flush_buffer()

int OpenMD::gzstreambuf::flush_buffer ( )
private

Definition at line 101 of file gzstream.cpp.

References file.

Referenced by overflow(), and sync().

◆ is_open()

int OpenMD::gzstreambuf::is_open ( )
inline

Definition at line 63 of file gzstream.hpp.

References close(), open(), and opened.

Referenced by close(), and open().

◆ open()

gzstreambuf * OpenMD::gzstreambuf::open ( const char *  name,
int  open_mode 
)

Definition at line 43 of file gzstream.cpp.

References file, is_open(), mode, and opened.

Referenced by OpenMD::gzstreambase::gzstreambase(), and is_open().

◆ overflow()

int OpenMD::gzstreambuf::overflow ( int  c = EOF)
virtual

Definition at line 111 of file gzstream.cpp.

References flush_buffer(), mode, and opened.

Referenced by ~gzstreambuf().

◆ sync()

int OpenMD::gzstreambuf::sync ( )
virtual

Definition at line 123 of file gzstream.cpp.

References flush_buffer().

Referenced by close(), and ~gzstreambuf().

◆ underflow()

int OpenMD::gzstreambuf::underflow ( )
virtual

Definition at line 76 of file gzstream.cpp.

References buffer, bufferSize, file, mode, and opened.

Referenced by ~gzstreambuf().

Member Data Documentation

◆ buffer

char OpenMD::gzstreambuf::buffer[bufferSize]
private

Definition at line 50 of file gzstream.hpp.

Referenced by underflow().

◆ bufferSize

const int OpenMD::gzstreambuf::bufferSize = 47+256
staticprivate

Definition at line 46 of file gzstream.hpp.

Referenced by underflow().

◆ file

gzFile OpenMD::gzstreambuf::file
private

Definition at line 49 of file gzstream.hpp.

Referenced by close(), flush_buffer(), open(), and underflow().

◆ mode

int OpenMD::gzstreambuf::mode
private

Definition at line 52 of file gzstream.hpp.

Referenced by open(), overflow(), and underflow().

◆ opened

char OpenMD::gzstreambuf::opened
private

Definition at line 51 of file gzstream.hpp.

Referenced by close(), is_open(), open(), overflow(), and underflow().


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