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

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

#include <staticlib/io/streambuf_source.hpp>

Public Member Functions

 streambuf_source (std::streambuf *streambuf)
 Constructor.
 streambuf_source (const streambuf_source &)
 Deleted copy constructor.
streambuf_source & operator= (const streambuf_source &)
 Deleted copy assignment operator.
 streambuf_source (streambuf_source &&other) STATICLIB_NOEXCEPT
 Move constructor.
streambuf_source & operator= (streambuf_source &&other) STATICLIB_NOEXCEPT
 Move assignment operator.
std::streamsize read (span< char > span)
 Read implementation delegated to the underlying streambuf.

Detailed Description

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

Constructor & Destructor Documentation

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

Constructor.

Parameters
streambufinput streambuf
staticlib::io::streambuf_source::streambuf_source ( const streambuf_source &  )

Deleted copy constructor.

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

Move constructor.

Parameters
otherother instance

Member Function Documentation

streambuf_source& staticlib::io::streambuf_source::operator= ( const streambuf_source &  )

Deleted copy assignment operator.

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

Move assignment operator.

Parameters
otherother instance
Returns
this instance
std::streamsize staticlib::io::streambuf_source::read ( span< char >  span)
inline

Read 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: