staticlib_io  1.2.11
 All Classes Namespaces Files Functions Variables
Public Member Functions | List of all members
staticlib::io::streambuf_sink Class Reference

Sink implementation that wraps a pointer to the "std::streambuf". More...

#include <staticlib/io/streambuf_sink.hpp>

Public Member Functions

 streambuf_sink (std::streambuf *streambuf)
 Constructor.
 streambuf_sink (const streambuf_sink &)
 Deleted copy constructor.
streambuf_sink & operator= (const streambuf_sink &)
 Deleted copy assignment operator.
 streambuf_sink (streambuf_sink &&other) STATICLIB_NOEXCEPT
 Move constructor.
streambuf_sink & operator= (streambuf_sink &&other) STATICLIB_NOEXCEPT
 Move assignment operator.
std::streamsize write (span< const char > span)
 Write implementation delegated to the underlying streambuf.
std::streamsize flush ()
 Flushes destination streambuf.

Detailed Description

Sink implementation that wraps a pointer to the "std::streambuf".

Constructor & Destructor Documentation

staticlib::io::streambuf_sink::streambuf_sink ( std::streambuf *  streambuf)
inlineexplicit

Constructor.

Parameters
streambufdestination streambuf
staticlib::io::streambuf_sink::streambuf_sink ( const streambuf_sink &  )

Deleted copy constructor.

Parameters
otherinstance
staticlib::io::streambuf_sink::streambuf_sink ( streambuf_sink &&  other)
inline

Move constructor.

Parameters
otherother instance

Member Function Documentation

std::streamsize staticlib::io::streambuf_sink::flush ( )
inline

Flushes destination streambuf.

Returns
number of bytes flushed
streambuf_sink& staticlib::io::streambuf_sink::operator= ( const streambuf_sink &  )

Deleted copy assignment operator.

Parameters
otherinstance
Returns
this instance
streambuf_sink& staticlib::io::streambuf_sink::operator= ( streambuf_sink &&  other)
inline

Move assignment operator.

Parameters
otherother instance
Returns
this instance
std::streamsize staticlib::io::streambuf_sink::write ( span< const char >  span)
inline

Write implementation delegated to the underlying streambuf.

Parameters
spanbuffer span
Returns
number of bytes processed

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