#include <BufStream.H>
Public Types | |
typedef std::streambuf::pos_type | pos_type |
typedef std::streambuf::off_type | off_type |
typedef std::ios_base::seekdir | seekdir |
typedef std::ios_base::openmode | openmode |
Public Member Functions | |
BufStreambuf (unsigned int initial_buf_len=256) | |
BufStreambuf (char *initial_buf, unsigned int initial_buf_len, unsigned int initial_valid_len=0, bool allocate_replacement=false) | |
~BufStreambuf () | |
const char * | str () |
pos_type | seekoff (off_type offset, seekdir way, openmode mode=(std::ios::in|std::ios::out)) |
pos_type | seekpos (pos_type pos, openmode mode=(std::ios::in|std::ios::out)) |
Protected Member Functions | |
int | underflow () |
std::streamsize | xsgetn (char *s, std::streamsize n) |
int | overflow (int c) |
std::streamsize | xsputn (const char *s, std::streamsize n) |
Private Member Functions | |
void | update_get_pos () |
void | update_put_pos () |
bool | alloc_if_needed (unsigned int new_byte_count) |
Private Attributes | |
char * | buf |
unsigned int | buf_len |
pos_type | get_pos |
pos_type | put_pos |
pos_type | valid_limit |
bool | delete_buf |
bool | allocate_new_buf |
|
Definition at line 49 of file BufStream.H. |
|
Definition at line 51 of file BufStream.H. |
|
Definition at line 48 of file BufStream.H. |
|
Definition at line 50 of file BufStream.H. |
|
|
|
Definition at line 87 of file BufStream.H. References buf, buf_len, and valid_limit. |
|
Definition at line 98 of file BufStream.H. References buf, and delete_buf. |
|
Referenced by Basics::BufStreambuf::overflow(), and Basics::BufStreambuf::xsputn(). |
|
|
|
|
|
|
|
Definition at line 104 of file BufStream.H. References buf, buf_len, update_put_pos(), and valid_limit. Referenced by Basics::BufStream::str(), Basics::OBufStream::str(), and Basics::IBufStream::str(). |
|
|
|
Referenced by Basics::BufStreambuf::alloc_if_needed(), Basics::BufStreambuf::seekoff(), Basics::BufStreambuf::underflow(), and Basics::BufStreambuf::xsgetn(). |
|
Referenced by Basics::BufStreambuf::alloc_if_needed(), Basics::BufStreambuf::seekoff(), Basics::BufStreambuf::seekpos(), Basics::BufStreambuf::underflow(), Basics::BufStreambuf::xsgetn(), and str(). |
|
|
|
|
|
Definition at line 73 of file BufStream.H. Referenced by Basics::BufStreambuf::alloc_if_needed(). |
|
|
Definition at line 59 of file BufStream.H. Referenced by Basics::BufStreambuf::alloc_if_needed(), Basics::BufStreambuf::seekoff(), Basics::BufStreambuf::seekpos(), BufStreambuf(), and str(). |
|
Definition at line 69 of file BufStream.H. Referenced by Basics::BufStreambuf::alloc_if_needed(), and ~BufStreambuf(). |
|
Definition at line 62 of file BufStream.H. Referenced by Basics::BufStreambuf::alloc_if_needed(), Basics::BufStreambuf::seekoff(), Basics::BufStreambuf::seekpos(), Basics::BufStreambuf::underflow(), Basics::BufStreambuf::update_get_pos(), and Basics::BufStreambuf::xsgetn(). |
|
Definition at line 62 of file BufStream.H. Referenced by Basics::BufStreambuf::alloc_if_needed(), Basics::BufStreambuf::seekoff(), Basics::BufStreambuf::seekpos(), and Basics::BufStreambuf::update_put_pos(). |
|
Definition at line 65 of file BufStream.H. Referenced by Basics::BufStreambuf::alloc_if_needed(), Basics::BufStreambuf::seekoff(), Basics::BufStreambuf::seekpos(), Basics::BufStreambuf::underflow(), Basics::BufStreambuf::update_put_pos(), Basics::BufStreambuf::xsgetn(), BufStreambuf(), and str(). |