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

Adapts a single non-modifiable buffer so that it meets the requirements of the ConstBufferSequence concept. More...

#include <buffer.hpp>

Inheritance diagram for boost::asio::const_buffers_1:
Collaboration diagram for boost::asio::const_buffers_1:

Public Types

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

Public Member Functions

 const_buffers_1 (const void *data, std::size_t size)
 Construct to represent a given memory range. More...
 
 const_buffers_1 (const const_buffer &b)
 Construct to represent a single non-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.)

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

Detailed Description

Adapts a single non-modifiable buffer so that it meets the requirements of the ConstBufferSequence 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::const_buffers_1::const_buffers_1 ( const void *  data,
std::size_t  size 
)
inline

Construct to represent a given memory range.

boost::asio::const_buffers_1::const_buffers_1 ( const const_buffer b)
inlineexplicit

Construct to represent a single non-modifiable buffer.

Member Function Documentation

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

Get a random-access iterator to the first element.

Referenced by end().

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

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

References begin().

Friends And Related Function Documentation

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

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

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

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

Create a new non-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: