A random access iterator over the bytes in a buffer sequence. More...
#include <buffers_iterator.hpp>
Public Types | |
typedef std::ptrdiff_t | difference_type |
The type used for the distance between two iterators. More... | |
typedef ByteType | value_type |
The type of the value pointed to by the iterator. More... | |
typedef detail::buffers_iterator_types < BufferSequence, ByteType > ::byte_type * | pointer |
typedef detail::buffers_iterator_types < BufferSequence, ByteType > ::byte_type & | reference |
typedef std::random_access_iterator_tag | iterator_category |
The iterator category. More... | |
Public Member Functions | |
buffers_iterator () | |
Default constructor. Creates an iterator in an undefined state. More... | |
reference | operator* () const |
Dereference an iterator. More... | |
pointer | operator-> () const |
Dereference an iterator. More... | |
reference | operator[] (std::ptrdiff_t difference) const |
Access an individual element. More... | |
buffers_iterator & | operator++ () |
Increment operator (prefix). More... | |
buffers_iterator | operator++ (int) |
Increment operator (postfix). More... | |
buffers_iterator & | operator-- () |
Decrement operator (prefix). More... | |
buffers_iterator | operator-- (int) |
Decrement operator (postfix). More... | |
buffers_iterator & | operator+= (std::ptrdiff_t difference) |
Addition operator. More... | |
buffers_iterator & | operator-= (std::ptrdiff_t difference) |
Subtraction operator. More... | |
Static Public Member Functions | |
static buffers_iterator | begin (const BufferSequence &buffers) |
Construct an iterator representing the beginning of the buffers' data. More... | |
static buffers_iterator | end (const BufferSequence &buffers) |
Construct an iterator representing the end of the buffers' data. More... | |
Friends | |
buffers_iterator | operator+ (const buffers_iterator &iter, std::ptrdiff_t difference) |
Addition operator. More... | |
buffers_iterator | operator+ (std::ptrdiff_t difference, const buffers_iterator &iter) |
Addition operator. More... | |
buffers_iterator | operator- (const buffers_iterator &iter, std::ptrdiff_t difference) |
Subtraction operator. More... | |
std::ptrdiff_t | operator- (const buffers_iterator &a, const buffers_iterator &b) |
Subtraction operator. More... | |
bool | operator== (const buffers_iterator &a, const buffers_iterator &b) |
Test two iterators for equality. More... | |
bool | operator!= (const buffers_iterator &a, const buffers_iterator &b) |
Test two iterators for inequality. More... | |
bool | operator< (const buffers_iterator &a, const buffers_iterator &b) |
Compare two iterators. More... | |
bool | operator<= (const buffers_iterator &a, const buffers_iterator &b) |
Compare two iterators. More... | |
bool | operator> (const buffers_iterator &a, const buffers_iterator &b) |
Compare two iterators. More... | |
bool | operator>= (const buffers_iterator &a, const buffers_iterator &b) |
Compare two iterators. More... | |
A random access iterator over the bytes in a buffer sequence.
typedef std::ptrdiff_t boost::asio::buffers_iterator< BufferSequence, ByteType >::difference_type |
The type used for the distance between two iterators.
typedef std::random_access_iterator_tag boost::asio::buffers_iterator< BufferSequence, ByteType >::iterator_category |
The iterator category.
typedef detail::buffers_iterator_types< BufferSequence, ByteType>::byte_type* boost::asio::buffers_iterator< BufferSequence, ByteType >::pointer |
typedef detail::buffers_iterator_types< BufferSequence, ByteType>::byte_type& boost::asio::buffers_iterator< BufferSequence, ByteType >::reference |
typedef ByteType boost::asio::buffers_iterator< BufferSequence, ByteType >::value_type |
The type of the value pointed to by the iterator.
|
inline |
Default constructor. Creates an iterator in an undefined state.
|
inlinestatic |
Construct an iterator representing the beginning of the buffers' data.
References boost::asio::buffer_size().
Referenced by boost::asio::buffers_begin().
|
inlinestatic |
Construct an iterator representing the end of the buffers' data.
References boost::asio::buffer(), and boost::asio::buffer_size().
Referenced by boost::asio::buffers_end().
|
inline |
Dereference an iterator.
|
inline |
Increment operator (prefix).
|
inline |
Increment operator (postfix).
|
inline |
Addition operator.
|
inline |
Decrement operator (prefix).
|
inline |
Decrement operator (postfix).
|
inline |
Subtraction operator.
|
inline |
Dereference an iterator.
|
inline |
Access an individual element.
|
friend |
Test two iterators for inequality.
|
friend |
Addition operator.
|
friend |
Addition operator.
|
friend |
Subtraction operator.
|
friend |
Subtraction operator.
|
friend |
Compare two iterators.
|
friend |
Compare two iterators.
|
friend |
Test two iterators for equality.
|
friend |
Compare two iterators.
|
friend |
Compare two iterators.