#include <pl_streambuf.h>
Inheritance diagram for PLearn::pl_streambuf:
Public Member Functions | |
pl_streambuf (streambuf &_original_buf, int_type _inbuflen=0) | |
ctor: needs a stream buffer | |
virtual | ~pl_streambuf () |
destructor: delete the allocated input buffer | |
void | seekmark (const pl_streammarker &mark) |
Protected Member Functions | |
virtual int_type | underflow () |
underflow: If no mark, get from underlying buffer. | |
virtual int_type | uflow () |
virtual streamsize | xsgetn (char *s, streamsize n) |
virtual streamsize | xsputn (const char *s, streamsize n) |
virtual int_type | overflow (int_type meta=pl_streambuf::eof) |
virtual int_type | sync () |
virtual int_type | pbackfail (int_type c=eof) |
int | curpos () const |
Protected Attributes | |
streambuf & | original_buf |
char * | inbuf |
int | inbuflen |
pl_streammarker * | first_marker |
Static Protected Attributes | |
const int | pback_size = 4 |
const int | min_buf_size = 16 |
Private Types | |
typedef int | int_type |
typedef char | char_type |
typedef streambuf | inherited |
Static Private Attributes | |
const int_type | eof = EOF |
Definition at line 63 of file pl_streambuf.h.
|
Definition at line 67 of file pl_streambuf.h. |
|
Definition at line 76 of file pl_streambuf.h. |
|
Definition at line 66 of file pl_streambuf.h. Referenced by underflow(). |
|
ctor: needs a stream buffer
|
|
destructor: delete the allocated input buffer
Definition at line 59 of file pl_streambuf.cc. References inbuf. |
|
Definition at line 102 of file pl_streambuf.h. References inbuf. Referenced by PLearn::pl_streammarker::pl_streammarker(). |
|
Definition at line 163 of file pl_streambuf.cc. References original_buf. |
|
Definition at line 178 of file pl_streambuf.cc. References original_buf. |
|
Definition at line 166 of file pl_streambuf.cc. References inbuf, and PLearn::pl_streammarker::pos. Referenced by PLearn::readFieldName(), and PLearn::readObject(). |
|
Definition at line 169 of file pl_streambuf.cc. References original_buf. |
|
Definition at line 131 of file pl_streambuf.cc. References first_marker, original_buf, and underflow(). |
|
underflow: If no mark, get from underlying buffer. If buffer is marked, grow/fill buffer as necessary and return next char. Definition at line 67 of file pl_streambuf.cc. References first_marker, inbuf, inbuflen, int_type, min_buf_size, original_buf, and pback_size. Referenced by uflow(). |
|
|
|
|
|
Definition at line 70 of file pl_streambuf.h. |
|
Definition at line 86 of file pl_streambuf.h. Referenced by PLearn::pl_streammarker::pl_streammarker(), uflow(), underflow(), and PLearn::pl_streammarker::~pl_streammarker(). |
|
Definition at line 81 of file pl_streambuf.h. Referenced by curpos(), seekmark(), underflow(), and ~pl_streambuf(). |
|
Definition at line 82 of file pl_streambuf.h. Referenced by underflow(). |
|
Definition at line 84 of file pl_streambuf.h. Referenced by underflow(). |
|
Definition at line 80 of file pl_streambuf.h. Referenced by overflow(), pbackfail(), sync(), uflow(), and underflow(). |
|
Definition at line 83 of file pl_streambuf.h. Referenced by underflow(). |