staticlib_io  1.2.11
 All Classes Namespaces Files Functions Variables
Public Member Functions | Protected Member Functions | List of all members
staticlib::io::unbuffered_ostreambuf< Sink > Class Template Reference

Unbuffered implementation of output streambuf, wraps Sink reference (in terms of Boost.Iostreams). More...

#include <staticlib/io/unbuffered_streambuf.hpp>

Inheritance diagram for staticlib::io::unbuffered_ostreambuf< Sink >:
staticlib::io::detail::unbuffered_streambuf_base

Public Member Functions

 unbuffered_ostreambuf (Sink &&sink)
 Constructor, created sink wrapper will own specified sink.
 unbuffered_ostreambuf (const unbuffered_ostreambuf &)
 Deleted copy constructor.
unbuffered_ostreambuf & operator= (const unbuffered_ostreambuf &)
 Deleted copy assignment operator.
 unbuffered_ostreambuf (unbuffered_ostreambuf &&other) STATICLIB_NOEXCEPT
 Move constructor.
unbuffered_ostreambuf & operator= (unbuffered_ostreambuf &&other) STATICLIB_NOEXCEPT
 Move assignment operator.
Sink & get_sink ()
 Underlying sink accessor.
- Public Member Functions inherited from staticlib::io::detail::unbuffered_streambuf_base
virtual int underflow () override
 Unsupported method, throws 'UtilsException'.
virtual int uflow () override
 Unsupported method, throws 'UtilsException'.
virtual int overflow (int) override
 Unsupported method, throws 'UtilsException'.

Protected Member Functions

virtual std::streamsize xsputn (const char *s, std::streamsize count) override
 Writes count characters to the output sequence from the character array whose first element is pointed to by s.
- Protected Member Functions inherited from staticlib::io::detail::unbuffered_streambuf_base
virtual std::streamsize xsgetn (char *, std::streamsize) override
 Reads count characters from the input sequence and stores them into a character array pointed to by s Should be overriden by Source streambuf inheritors, default implementation throws 'UtilsException'.
virtual unbuffered_streambuf_base * setbuf (char *, std::streamsize) override
 Unsupported method, throws 'UtilsException'.
virtual std::streampos seekoff (std::streamoff, std::ios_base::seekdir, std::ios_base::openmode) override
 Unsupported method, throws 'UtilsException'.
virtual std::streampos seekpos (std::streampos, std::ios_base::openmode) override
 Unsupported method, throws 'UtilsException'.

Detailed Description

template<typename Sink>
class staticlib::io::unbuffered_ostreambuf< Sink >

Unbuffered implementation of output streambuf, wraps Sink reference (in terms of Boost.Iostreams).

Should be used directly, must NOT be used wrapped into std::ostream.

Constructor & Destructor Documentation

template<typename Sink >
staticlib::io::unbuffered_ostreambuf< Sink >::unbuffered_ostreambuf ( Sink &&  sink)
inlineexplicit

Constructor, created sink wrapper will own specified sink.

Parameters
sinkSink reference (in terms of Boost.Iostreams)
template<typename Sink >
staticlib::io::unbuffered_ostreambuf< Sink >::unbuffered_ostreambuf ( const unbuffered_ostreambuf< Sink > &  )

Deleted copy constructor.

template<typename Sink >
staticlib::io::unbuffered_ostreambuf< Sink >::unbuffered_ostreambuf ( unbuffered_ostreambuf< Sink > &&  other)
inline

Move constructor.

Member Function Documentation

template<typename Sink >
Sink& staticlib::io::unbuffered_ostreambuf< Sink >::get_sink ( )
inline

Underlying sink accessor.

Returns
underlying sink reference
template<typename Sink >
unbuffered_ostreambuf& staticlib::io::unbuffered_ostreambuf< Sink >::operator= ( const unbuffered_ostreambuf< Sink > &  )

Deleted copy assignment operator.

template<typename Sink >
unbuffered_ostreambuf& staticlib::io::unbuffered_ostreambuf< Sink >::operator= ( unbuffered_ostreambuf< Sink > &&  other)
inline

Move assignment operator.

template<typename Sink >
virtual std::streamsize staticlib::io::unbuffered_ostreambuf< Sink >::xsputn ( const char *  s,
std::streamsize  count 
)
inlineoverrideprotectedvirtual

Writes count characters to the output sequence from the character array whose first element is pointed to by s.

Parameters
ssource buffer
countnumber of characters to write

Reimplemented from staticlib::io::detail::unbuffered_streambuf_base.


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