A random access iterator over the bytes in a buffer sequence. More...
#include <buffers_iterator.hpp>
Public Member Functions | |
buffers_iterator () | |
Default constructor. Creates an iterator in an undefined state. | |
Static Public Member Functions | |
static buffers_iterator | begin (const BufferSequence &buffers) |
Construct an iterator representing the beginning of the buffers' data. | |
static buffers_iterator | end (const BufferSequence &buffers) |
Construct an iterator representing the end of the buffers' data. | |
Private Types | |
typedef detail::buffers_iterator_types < BufferSequence, ByteType > ::buffer_type | buffer_type |
typedef detail::buffers_iterator_types < BufferSequence, ByteType > ::byte_type | byte_type |
Private Member Functions | |
void | advance (std::ptrdiff_t n) |
void | decrement () |
byte_type & | dereference () const |
std::ptrdiff_t | distance_to (const buffers_iterator &other) const |
bool | equal (const buffers_iterator &other) const |
void | increment () |
Private Attributes | |
BufferSequence::const_iterator | begin_ |
BufferSequence::const_iterator | current_ |
buffer_type | current_buffer_ |
std::size_t | current_buffer_position_ |
BufferSequence::const_iterator | end_ |
std::size_t | position_ |
Friends | |
class | boost::iterator_core_access |
A random access iterator over the bytes in a buffer sequence.
Definition at line 76 of file buffers_iterator.hpp.
typedef detail::buffers_iterator_types< BufferSequence, ByteType>::buffer_type asio::buffers_iterator< BufferSequence, ByteType >::buffer_type [private] |
Definition at line 85 of file buffers_iterator.hpp.
typedef detail::buffers_iterator_types< BufferSequence, ByteType>::byte_type asio::buffers_iterator< BufferSequence, ByteType >::byte_type [private] |
Definition at line 87 of file buffers_iterator.hpp.
asio::buffers_iterator< BufferSequence, ByteType >::buffers_iterator | ( | ) | [inline] |
Default constructor. Creates an iterator in an undefined state.
Definition at line 91 of file buffers_iterator.hpp.
void asio::buffers_iterator< BufferSequence, ByteType >::advance | ( | std::ptrdiff_t | n | ) | [inline, private] |
Definition at line 203 of file buffers_iterator.hpp.
static buffers_iterator asio::buffers_iterator< BufferSequence, ByteType >::begin | ( | const BufferSequence & | buffers | ) | [inline, static] |
Construct an iterator representing the beginning of the buffers' data.
Definition at line 102 of file buffers_iterator.hpp.
void asio::buffers_iterator< BufferSequence, ByteType >::decrement | ( | ) | [inline, private] |
Definition at line 173 of file buffers_iterator.hpp.
byte_type& asio::buffers_iterator< BufferSequence, ByteType >::dereference | ( | ) | const [inline, private] |
Definition at line 138 of file buffers_iterator.hpp.
std::ptrdiff_t asio::buffers_iterator< BufferSequence, ByteType >::distance_to | ( | const buffers_iterator< BufferSequence, ByteType > & | other | ) | const [inline, private] |
Definition at line 285 of file buffers_iterator.hpp.
static buffers_iterator asio::buffers_iterator< BufferSequence, ByteType >::end | ( | const BufferSequence & | buffers | ) | [inline, static] |
Construct an iterator representing the end of the buffers' data.
Definition at line 119 of file buffers_iterator.hpp.
bool asio::buffers_iterator< BufferSequence, ByteType >::equal | ( | const buffers_iterator< BufferSequence, ByteType > & | other | ) | const [inline, private] |
Definition at line 144 of file buffers_iterator.hpp.
void asio::buffers_iterator< BufferSequence, ByteType >::increment | ( | ) | [inline, private] |
Definition at line 150 of file buffers_iterator.hpp.
friend class boost::iterator_core_access [friend] |
Definition at line 135 of file buffers_iterator.hpp.
BufferSequence::const_iterator asio::buffers_iterator< BufferSequence, ByteType >::begin_ [private] |
Definition at line 292 of file buffers_iterator.hpp.
BufferSequence::const_iterator asio::buffers_iterator< BufferSequence, ByteType >::current_ [private] |
Definition at line 293 of file buffers_iterator.hpp.
buffer_type asio::buffers_iterator< BufferSequence, ByteType >::current_buffer_ [private] |
Definition at line 290 of file buffers_iterator.hpp.
std::size_t asio::buffers_iterator< BufferSequence, ByteType >::current_buffer_position_ [private] |
Definition at line 291 of file buffers_iterator.hpp.
BufferSequence::const_iterator asio::buffers_iterator< BufferSequence, ByteType >::end_ [private] |
Definition at line 294 of file buffers_iterator.hpp.
std::size_t asio::buffers_iterator< BufferSequence, ByteType >::position_ [private] |
Definition at line 295 of file buffers_iterator.hpp.