ug4
ug::EmptyStreamBuffer Class Reference

Used by EmptyStream, to send tokens into nirvana! More...

#include <empty_stream.h>

+ Inheritance diagram for ug::EmptyStreamBuffer:

Public Member Functions

 EmptyStreamBuffer ()
 
virtual int_type overflow (int_type c=traits_type::eof())
 

Protected Attributes

char_type m_buf [BUF_SIZE]
 

Static Protected Attributes

static const int BUF_SIZE = 128
 

Detailed Description

Used by EmptyStream, to send tokens into nirvana!

Note that the implementation is not really the fastest, since a virtual function is called for each token. However, not much is done in that virtual function...

Constructor & Destructor Documentation

◆ EmptyStreamBuffer()

ug::EmptyStreamBuffer::EmptyStreamBuffer ( )
inline

References BUF_SIZE, and m_buf.

Member Function Documentation

◆ overflow()

virtual int_type ug::EmptyStreamBuffer::overflow ( int_type  c = traits_type::eof())
inlinevirtual

References BUF_SIZE, and m_buf.

Member Data Documentation

◆ BUF_SIZE

const int ug::EmptyStreamBuffer::BUF_SIZE = 128
staticprotected

Referenced by EmptyStreamBuffer(), and overflow().

◆ m_buf

char_type ug::EmptyStreamBuffer::m_buf[BUF_SIZE]
protected

Referenced by EmptyStreamBuffer(), and overflow().


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