join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::StreambufDecorator Class Reference

stream buffer decorator. More...

#include <streambuf.hpp>

Inheritance diagram for join::StreambufDecorator:
Collaboration diagram for join::StreambufDecorator:

Public Member Functions

 StreambufDecorator (std::streambuf *streambuf, bool own=false)
 create the stream buffer decorator instance.
 
 StreambufDecorator (const StreambufDecorator &other)=delete
 copy constructor.
 
StreambufDecoratoroperator= (const StreambufDecorator &other)=delete
 copy assignment operator.
 
 StreambufDecorator (StreambufDecorator &&other)
 move constructor.
 
StreambufDecoratoroperator= (StreambufDecorator &&other)
 move assignment operator.
 
virtual ~StreambufDecorator ()
 destroy the stream buffer decorator instance.
 

Protected Attributes

std::streambuf * _innerbuf
 concrete stream buffer.
 
bool _own = false
 own inner stream buffer.
 

Detailed Description

stream buffer decorator.

Constructor & Destructor Documentation

◆ StreambufDecorator() [1/3]

join::StreambufDecorator::StreambufDecorator ( std::streambuf * streambuf,
bool own = false )
inline

create the stream buffer decorator instance.

Parameters
streambufconcrete stream buffer.
ownis the decorator owning inner stream buffer.

◆ StreambufDecorator() [2/3]

join::StreambufDecorator::StreambufDecorator ( const StreambufDecorator & other)
delete

copy constructor.

Parameters
otherother object to copy.

◆ StreambufDecorator() [3/3]

join::StreambufDecorator::StreambufDecorator ( StreambufDecorator && other)
inline

move constructor.

Parameters
otherother object to move.

◆ ~StreambufDecorator()

virtual join::StreambufDecorator::~StreambufDecorator ( )
inlinevirtual

destroy the stream buffer decorator instance.

Member Function Documentation

◆ operator=() [1/2]

StreambufDecorator & join::StreambufDecorator::operator= ( const StreambufDecorator & other)
delete

copy assignment operator.

Parameters
otherother object to assign.
Returns
current object.

◆ operator=() [2/2]

StreambufDecorator & join::StreambufDecorator::operator= ( StreambufDecorator && other)
inline

move assignment operator.

Parameters
otherother object to assign.
Returns
current object.

Member Data Documentation

◆ _innerbuf

std::streambuf* join::StreambufDecorator::_innerbuf
protected

concrete stream buffer.

◆ _own

bool join::StreambufDecorator::_own = false
protected

own inner stream buffer.


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