PLearn 0.1
Public Member Functions | Protected Member Functions | Private Types | Static Private Attributes
PLearn::pl_nullstreambuf Class Reference

#include <pl_nullstreambuf.h>

Inheritance diagram for PLearn::pl_nullstreambuf:
Inheritance graph
[legend]
Collaboration diagram for PLearn::pl_nullstreambuf:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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.


Member Typedef Documentation

Definition at line 59 of file pl_nullstreambuf.h.


Constructor & Destructor Documentation

PLearn::pl_nullstreambuf::pl_nullstreambuf ( ) [inline]

default and only ctor.

Definition at line 72 of file pl_nullstreambuf.h.

:streambuf() {}

Member Function Documentation

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.


Member Data Documentation

const int_type PLearn::pl_nullstreambuf::eof = EOF [static, private]

Definition at line 61 of file pl_nullstreambuf.h.

Referenced by underflow().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines