asio 0.3.8rc3 | Home | Reference | Tutorial | Examples | Design

Reference | Class Hierarchy | Class Index | Member Index

# asio::mutable_buffers_1 Class Reference

Inherits asio::mutable_buffer.

Inheritance diagram for asio::mutable_buffers_1:

List of all members.

## Detailed Description

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

## Public Types

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

## Public Member Functions

| mutable_buffers_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 PointerToPodType>
PointerToPodType | 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 asio::mutable_buffers_1::value_type

The type for each element in the list of buffers.

typedef const mutable_buffer* asio::mutable_buffers_1::const_iterator

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

## Constructor & Destructor Documentation

asio::mutable_buffers_1::mutable_buffers_1 | ( | const mutable_buffer & | b | ) | `[explicit]`

Construct to represent a single modifiable buffer.

## Member Function Documentation

const_iterator asio::mutable_buffers_1::begin | ( |  | ) | const

Get a random-access iterator to the first element.

const_iterator asio::mutable_buffers_1::end | ( |  | ) | const

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

## Friends And Related Function Documentation

template<typename PointerToPodType>

PointerToPodType 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.

asio 0.3.8rc3 | Home | Reference | Tutorial | Examples | Design