Eclipse SUMO - Simulation of Urban MObility
zstr::ostreambuf Class Reference

#include <zstr.hpp>

Inheritance diagram for zstr::ostreambuf:
Collaboration diagram for zstr::ostreambuf:

Public Member Functions

int deflate_loop (int flush)
 
ostreambufoperator= (const ostreambuf &)=delete
 
 ostreambuf (const ostreambuf &)=delete
 
 ostreambuf (std::streambuf *_sbuf_p, std::size_t _buff_size=default_buff_size, int _level=Z_DEFAULT_COMPRESSION)
 
virtual std::streambuf::int_type overflow (std::streambuf::int_type c=traits_type::eof())
 
virtual int sync ()
 
virtual ~ostreambuf ()
 

Private Attributes

std::size_t buff_size
 
char * in_buff
 
char * out_buff
 
std::streambuf * sbuf_p
 
detail::z_stream_wrapperzstrm_p
 

Static Private Attributes

static const std::size_t default_buff_size = (std::size_t)1 << 20
 

Detailed Description

Definition at line 223 of file zstr.hpp.

Constructor & Destructor Documentation

◆ ostreambuf() [1/2]

zstr::ostreambuf::ostreambuf ( std::streambuf *  _sbuf_p,
std::size_t  _buff_size = default_buff_size,
int  _level = Z_DEFAULT_COMPRESSION 
)
inline

Definition at line 227 of file zstr.hpp.

References buff_size, in_buff, out_buff, and sbuf_p.

◆ ostreambuf() [2/2]

zstr::ostreambuf::ostreambuf ( const ostreambuf )
delete

◆ ~ostreambuf()

virtual zstr::ostreambuf::~ostreambuf ( )
inlinevirtual

Definition at line 265 of file zstr.hpp.

References in_buff, out_buff, sync(), and zstrm_p.

Member Function Documentation

◆ deflate_loop()

int zstr::ostreambuf::deflate_loop ( int  flush)
inline

Definition at line 242 of file zstr.hpp.

References buff_size, out_buff, sbuf_p, and zstrm_p.

Referenced by overflow(), and sync().

◆ operator=()

ostreambuf& zstr::ostreambuf::operator= ( const ostreambuf )
delete

◆ overflow()

virtual std::streambuf::int_type zstr::ostreambuf::overflow ( std::streambuf::int_type  c = traits_type::eof())
inlinevirtual

Definition at line 280 of file zstr.hpp.

References buff_size, deflate_loop(), in_buff, and zstrm_p.

Referenced by sync().

◆ sync()

virtual int zstr::ostreambuf::sync ( )
inlinevirtual

Definition at line 296 of file zstr.hpp.

References deflate_loop(), overflow(), and zstrm_p.

Referenced by ~ostreambuf().

Field Documentation

◆ buff_size

std::size_t zstr::ostreambuf::buff_size
private

Definition at line 313 of file zstr.hpp.

Referenced by deflate_loop(), ostreambuf(), and overflow().

◆ default_buff_size

const std::size_t zstr::ostreambuf::default_buff_size = (std::size_t)1 << 20
staticprivate

Definition at line 315 of file zstr.hpp.

◆ in_buff

char* zstr::ostreambuf::in_buff
private

Definition at line 310 of file zstr.hpp.

Referenced by ostreambuf(), overflow(), and ~ostreambuf().

◆ out_buff

char* zstr::ostreambuf::out_buff
private

Definition at line 311 of file zstr.hpp.

Referenced by deflate_loop(), ostreambuf(), and ~ostreambuf().

◆ sbuf_p

std::streambuf* zstr::ostreambuf::sbuf_p
private

Definition at line 309 of file zstr.hpp.

Referenced by deflate_loop(), and ostreambuf().

◆ zstrm_p

detail::z_stream_wrapper* zstr::ostreambuf::zstrm_p
private

Definition at line 312 of file zstr.hpp.

Referenced by deflate_loop(), overflow(), sync(), and ~ostreambuf().


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