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

Source implementation that reads data from the specified string. More...

#include <staticlib/io/string_source.hpp>

Public Member Functions

 string_source (std::string &&str)
 Constructor.
 string_source (const std::string &str)
 Constructor.
 string_source (std::string &&str, size_t from, size_t to)
 Constructor.
 string_source (const string_source &)
 Deleted copy constructor.
string_source & operator= (const string_source &)
 Deleted copy assignment operator.
 string_source (string_source &&other) STATICLIB_NOEXCEPT
 Move constructor.
string_source & operator= (string_source &&other) STATICLIB_NOEXCEPT
 Move assignment operator.
std::streamsize read (span< char > span)
 Buffered read implementation.
std::string & get_string ()
 Underlying string accessor.

Detailed Description

Source implementation that reads data from the specified string.

Constructor & Destructor Documentation

staticlib::io::string_source::string_source ( std::string &&  str)
inline

Constructor.

Parameters
strsource string
staticlib::io::string_source::string_source ( const std::string &  str)
inline

Constructor.

Parameters
strsource string
staticlib::io::string_source::string_source ( std::string &&  str,
size_t  from,
size_t  to 
)
inline

Constructor.

Parameters
strsource string
fromstart index (inclusive)
toend index (exclusive)
staticlib::io::string_source::string_source ( const string_source &  )

Deleted copy constructor.

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

Move constructor.

Parameters
otherother instance

Member Function Documentation

std::string& staticlib::io::string_source::get_string ( )
inline

Underlying string accessor.

Returns
underlying string
string_source& staticlib::io::string_source::operator= ( const string_source &  )

Deleted copy assignment operator.

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

Move assignment operator.

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

Buffered read implementation.

Parameters
spanbuffer span
Returns
number of bytes processed

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