torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::common::NullStreamBuffer Class Reference

Null stream buffer used by NullOutputStream. More...

#include <NullOutputStream.hpp>

+ Inheritance diagram for torc::common::NullStreamBuffer:
+ Collaboration diagram for torc::common::NullStreamBuffer:

Private Member Functions

int overflow (int c)
 Responds that we never overflow our buffer, and can thus keep writing indefinitely. More...
 

Detailed Description

Null stream buffer used by NullOutputStream.

Note that this stream buffer is not necessary for the NullOutputStream if we do not care about the stream's badbit being set.

Definition at line 32 of file NullOutputStream.hpp.

Member Function Documentation

int torc::common::NullStreamBuffer::overflow ( int  c)
inlineprivate

Responds that we never overflow our buffer, and can thus keep writing indefinitely.

Definition at line 35 of file NullOutputStream.hpp.

35 { return traits_type::not_eof(c); }

The documentation for this class was generated from the following file: