Boost C++ Libraries Home Libraries People FAQ More

Home | Reference | Tutorial | Examples | Design
Reference Index | Class Hierarchy | Class Index | Member Index

boost::asio::mutable_buffer_container_1 Class Reference

Inherits boost::asio::mutable_buffer.

Inheritance diagram for boost::asio::mutable_buffer_container_1:

Inheritance graph
List of all members.

Detailed Description

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


Public Types

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

Public Member Functions

 mutable_buffer_container_1 (const mutable_buffer &b)
 Construct to represent a single modifiable buffer.
const_iterator begin () const
 Get a random-access iterator to the first element.
const_iterator end () const
 Get a random-access iterator for one past the last element.

Related Functions

(Note that these are not member functions.)

template<typename Pointer_To_Pod_Type>
Pointer_To_Pod_Type buffer_cast (const mutable_buffer &b)
 Cast a non-modifiable buffer to a specified pointer to POD type.
std::size_t buffer_size (const mutable_buffer &b)
 Get the number of bytes in a non-modifiable buffer.
mutable_buffer operator+ (const mutable_buffer &b, std::size_t start)
 Create a new modifiable buffer that is offset from the start of another.
mutable_buffer operator+ (std::size_t start, const mutable_buffer &b)
 Create a new modifiable buffer that is offset from the start of another.


Member Typedef Documentation

typedef mutable_buffer boost::asio::mutable_buffer_container_1::value_type

The type for each element in the list of buffers.

typedef const mutable_buffer* boost::asio::mutable_buffer_container_1::const_iterator

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


Constructor & Destructor Documentation

boost::asio::mutable_buffer_container_1::mutable_buffer_container_1 ( const mutable_buffer b  )  [explicit]

Construct to represent a single modifiable buffer.


Member Function Documentation

const_iterator boost::asio::mutable_buffer_container_1::begin (  )  const

Get a random-access iterator to the first element.

const_iterator boost::asio::mutable_buffer_container_1::end (  )  const

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


Friends And Related Function Documentation

template<typename Pointer_To_Pod_Type>
Pointer_To_Pod_Type buffer_cast ( const mutable_buffer b  )  [related, inherited]

Cast a non-modifiable buffer to a specified pointer to POD type.

std::size_t buffer_size ( const mutable_buffer b  )  [related, inherited]

Get the number of bytes in a non-modifiable buffer.

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

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

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

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

Copyright © 2003 - 2006 Christopher M. Kohlhoff


Home | Reference | Tutorial | Examples | Design