Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::asio::mutable_buffers_1 Class Reference

Adapts a single modifiable buffer so that it meets the requirements of the MutableBufferSequence concept. More...

#include <buffer.hpp>

Inheritance diagram for boost::asio::mutable_buffers_1:
Collaboration diagram for boost::asio::mutable_buffers_1:

Public Types

typedef mutable_buffer value_type
 The type for each element in the list of buffers. More...
 
typedef const mutable_bufferconst_iterator
 A random-access iterator type that may be used to read elements. More...
 

Public Member Functions

 mutable_buffers_1 (void *data, std::size_t size)
 Construct to represent a given memory range. More...
 
 mutable_buffers_1 (const mutable_buffer &b)
 Construct to represent a single modifiable buffer. More...
 
const_iterator begin () const
 Get a random-access iterator to the first element. More...
 
const_iterator end () const
 Get a random-access iterator for one past the last element. More...
 

Related Functions

(Note that these are not member functions.)

mutable_buffer operator+ (const mutable_buffer &b, std::size_t start)
 Create a new modifiable buffer that is offset from the start of another. More...
 
mutable_buffer operator+ (std::size_t start, const mutable_buffer &b)
 Create a new modifiable buffer that is offset from the start of another. More...
 

Detailed Description

Adapts a single modifiable buffer so that it meets the requirements of the MutableBufferSequence concept.

Member Typedef Documentation

A random-access iterator type that may be used to read elements.

The type for each element in the list of buffers.

Constructor & Destructor Documentation

boost::asio::mutable_buffers_1::mutable_buffers_1 ( void *  data,
std::size_t  size 
)
inline

Construct to represent a given memory range.

boost::asio::mutable_buffers_1::mutable_buffers_1 ( const mutable_buffer b)
inlineexplicit

Construct to represent a single modifiable buffer.

Member Function Documentation

const_iterator boost::asio::mutable_buffers_1::begin ( ) const
inline

Get a random-access iterator to the first element.

Referenced by end().

const_iterator boost::asio::mutable_buffers_1::end ( ) const
inline

Get a random-access iterator for one past the last element.

References begin().

Friends And Related Function Documentation

mutable_buffer operator+ ( const mutable_buffer b,
std::size_t  start 
)
related

Create a new modifiable buffer that is offset from the start of another.

References boost::asio::b, boost::asio::buffer_cast(), and boost::asio::buffer_size().

mutable_buffer operator+ ( std::size_t  start,
const mutable_buffer b 
)
related

Create a new modifiable buffer that is offset from the start of another.

References boost::asio::b, boost::asio::buffer_cast(), and boost::asio::buffer_size().


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