PLearn 0.1
|
#include <pl_nullstreambuf.h>
Public Member Functions | |
pl_nullstreambuf () | |
default and only ctor. | |
Protected Member Functions | |
virtual int_type | underflow () |
underflow: always return eof | |
virtual int_type | overflow (int_type meta=pl_nullstreambuf::eof) |
overflow: do nothing; just return the passed value. | |
Private Types | |
typedef int | int_type |
Static Private Attributes | |
static const int_type | eof = EOF |
pl_nullstreambuf: streambuf equivalent of a black hole... you can get nothing out of it and what goes into it is lost forever.
Definition at line 55 of file pl_nullstreambuf.h.
typedef int PLearn::pl_nullstreambuf::int_type [private] |
Definition at line 59 of file pl_nullstreambuf.h.
PLearn::pl_nullstreambuf::pl_nullstreambuf | ( | ) | [inline] |
virtual int_type PLearn::pl_nullstreambuf::overflow | ( | int_type | meta = pl_nullstreambuf::eof | ) | [inline, protected, virtual] |
overflow: do nothing; just return the passed value.
Definition at line 68 of file pl_nullstreambuf.h.
{ return meta; }
virtual int_type PLearn::pl_nullstreambuf::underflow | ( | ) | [inline, protected, virtual] |
underflow: always return eof
Definition at line 65 of file pl_nullstreambuf.h.
References eof.
{ return pl_nullstreambuf::eof; }
const int_type PLearn::pl_nullstreambuf::eof = EOF [static, private] |
Definition at line 61 of file pl_nullstreambuf.h.
Referenced by underflow().