Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

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

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 54 of file pl_nullstreambuf.h.


Member Typedef Documentation

typedef int PLearn::pl_nullstreambuf::int_type [private]
 

Definition at line 58 of file pl_nullstreambuf.h.


Constructor & Destructor Documentation

PLearn::pl_nullstreambuf::pl_nullstreambuf  )  [inline]
 

default and only ctor.

Definition at line 71 of file pl_nullstreambuf.h.


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 67 of file pl_nullstreambuf.h.

References overflow().

Referenced by overflow().

virtual int_type PLearn::pl_nullstreambuf::underflow  )  [inline, protected, virtual]
 

underflow: always return eof

Definition at line 64 of file pl_nullstreambuf.h.


Member Data Documentation

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

Definition at line 60 of file pl_nullstreambuf.h.


The documentation for this class was generated from the following file:
Generated on Tue Aug 17 16:23:12 2004 for PLearn by doxygen 1.3.7