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

Source wrapper that holds a "std::unique_ptr" to the underlying source. More...

#include <staticlib/io/unique_source.hpp>

Public Member Functions

 unique_source (Source *src)
 Constructor.
 unique_source (const unique_source &)
 Deleted copy constructor.
unique_source & operator= (const unique_source &)
 Deleted copy assignment operator.
 unique_source (unique_source &&other) STATICLIB_NOEXCEPT
 Move constructor.
unique_source & operator= (unique_source &&other) STATICLIB_NOEXCEPT
 Move assignment operator.
std::streamsize read (span< char > span)
 Read implementation delegated to the underlying source.
Source & get_source ()
 Underlying source accessor.

Detailed Description

template<typename Source>
class staticlib::io::unique_source< Source >

Source wrapper that holds a "std::unique_ptr" to the underlying source.

Constructor & Destructor Documentation

template<typename Source >
staticlib::io::unique_source< Source >::unique_source ( Source *  src)
inlineexplicit

Constructor.

Parameters
srcinput source
template<typename Source >
staticlib::io::unique_source< Source >::unique_source ( const unique_source< Source > &  )

Deleted copy constructor.

Parameters
otherinstance
template<typename Source >
staticlib::io::unique_source< Source >::unique_source ( unique_source< Source > &&  other)
inline

Move constructor.

Parameters
otherother instance

Member Function Documentation

template<typename Source >
Source& staticlib::io::unique_source< Source >::get_source ( )
inline

Underlying source accessor.

Returns
underlying source reference
template<typename Source >
unique_source& staticlib::io::unique_source< Source >::operator= ( const unique_source< Source > &  )

Deleted copy assignment operator.

Parameters
otherinstance
Returns
this instance
template<typename Source >
unique_source& staticlib::io::unique_source< Source >::operator= ( unique_source< Source > &&  other)
inline

Move assignment operator.

Parameters
otherother instance
Returns
this instance
template<typename Source >
std::streamsize staticlib::io::unique_source< Source >::read ( span< char >  span)
inline

Read implementation delegated to the underlying source.

Parameters
spanbuffer span
Returns
number of bytes processed

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