All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
asio::buffers_iterator< BufferSequence, ByteType > Class Template Reference

A random access iterator over the bytes in a buffer sequence. More...

#include <buffers_iterator.hpp>

List of all members.

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_typedereference () 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

Detailed Description

template<typename BufferSequence, typename ByteType = char>
class asio::buffers_iterator< BufferSequence, ByteType >

A random access iterator over the bytes in a buffer sequence.

Definition at line 76 of file buffers_iterator.hpp.


Member Typedef Documentation

template<typename BufferSequence , typename ByteType = char>
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.

template<typename BufferSequence , typename ByteType = char>
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.


Constructor & Destructor Documentation

template<typename BufferSequence , typename ByteType = char>
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.


Member Function Documentation

template<typename BufferSequence , typename ByteType = char>
void asio::buffers_iterator< BufferSequence, ByteType >::advance ( std::ptrdiff_t  n) [inline, private]

Definition at line 203 of file buffers_iterator.hpp.

template<typename BufferSequence , typename ByteType = char>
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.

template<typename BufferSequence , typename ByteType = char>
void asio::buffers_iterator< BufferSequence, ByteType >::decrement ( ) [inline, private]

Definition at line 173 of file buffers_iterator.hpp.

template<typename BufferSequence , typename ByteType = char>
byte_type& asio::buffers_iterator< BufferSequence, ByteType >::dereference ( ) const [inline, private]

Definition at line 138 of file buffers_iterator.hpp.

template<typename BufferSequence , typename ByteType = char>
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.

template<typename BufferSequence , typename ByteType = char>
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.

template<typename BufferSequence , typename ByteType = char>
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.

template<typename BufferSequence , typename ByteType = char>
void asio::buffers_iterator< BufferSequence, ByteType >::increment ( ) [inline, private]

Definition at line 150 of file buffers_iterator.hpp.


Friends And Related Function Documentation

template<typename BufferSequence , typename ByteType = char>
friend class boost::iterator_core_access [friend]

Definition at line 135 of file buffers_iterator.hpp.


Member Data Documentation

template<typename BufferSequence , typename ByteType = char>
BufferSequence::const_iterator asio::buffers_iterator< BufferSequence, ByteType >::begin_ [private]

Definition at line 292 of file buffers_iterator.hpp.

template<typename BufferSequence , typename ByteType = char>
BufferSequence::const_iterator asio::buffers_iterator< BufferSequence, ByteType >::current_ [private]

Definition at line 293 of file buffers_iterator.hpp.

template<typename BufferSequence , typename ByteType = char>
buffer_type asio::buffers_iterator< BufferSequence, ByteType >::current_buffer_ [private]

Definition at line 290 of file buffers_iterator.hpp.

template<typename BufferSequence , typename ByteType = char>
std::size_t asio::buffers_iterator< BufferSequence, ByteType >::current_buffer_position_ [private]

Definition at line 291 of file buffers_iterator.hpp.

template<typename BufferSequence , typename ByteType = char>
BufferSequence::const_iterator asio::buffers_iterator< BufferSequence, ByteType >::end_ [private]

Definition at line 294 of file buffers_iterator.hpp.

template<typename BufferSequence , typename ByteType = char>
std::size_t asio::buffers_iterator< BufferSequence, ByteType >::position_ [private]

Definition at line 295 of file buffers_iterator.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Castor
Author(s): Carpe Noctem
autogenerated on Fri Nov 8 2013 11:05:40