Clementine
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
asio::ip::basic_resolver_iterator< InternetProtocol > Class Template Reference

An iterator over the entries produced by a resolver. More...

#include <basic_resolver_iterator.hpp>

Inheritance diagram for asio::ip::basic_resolver_iterator< InternetProtocol >:
Inheritance graph
[legend]

Public Types

typedef std::ptrdiff_t difference_type
 The type used for the distance between two iterators.
 
typedef basic_resolver_entry< InternetProtocol > value_type
 The type of the value pointed to by the iterator.
 
typedef const basic_resolver_entry< InternetProtocol > * pointer
 The type of the result of applying operator->() to the iterator.
 
typedef const basic_resolver_entry< InternetProtocol > & reference
 The type of the result of applying operator*() to the iterator.
 
typedef std::forward_iterator_tag iterator_category
 The iterator category.
 

Public Member Functions

 basic_resolver_iterator ()
 Default constructor creates an end iterator.
 
 basic_resolver_iterator (const basic_resolver_iterator &other)
 Copy constructor.
 
basic_resolver_iteratoroperator= (const basic_resolver_iterator &other)
 Assignment operator.
 
const basic_resolver_entry< InternetProtocol > & operator* () const
 Dereference an iterator.
 
const basic_resolver_entry< InternetProtocol > * operator-> () const
 Dereference an iterator.
 
basic_resolver_iteratoroperator++ ()
 Increment operator (prefix).
 
basic_resolver_iterator operator++ (int)
 Increment operator (postfix).
 

Protected Types

typedef std::vector< basic_resolver_entry< InternetProtocol > > values_type
 
typedef asio::detail::shared_ptr< values_type > values_ptr_type
 

Protected Member Functions

void increment ()
 
bool equal (const basic_resolver_iterator &other) const
 
const basic_resolver_entry< InternetProtocol > & dereference () const
 

Protected Attributes

values_ptr_type values_
 
std::size_t index_
 

Friends

bool operator== (const basic_resolver_iterator &a, const basic_resolver_iterator &b)
 Test two iterators for equality.
 
bool operator!= (const basic_resolver_iterator &a, const basic_resolver_iterator &b)
 Test two iterators for inequality.
 

Detailed Description

template<typename InternetProtocol>
class asio::ip::basic_resolver_iterator< InternetProtocol >

An iterator over the entries produced by a resolver.

The asio::ip::basic_resolver_iterator class template is used to define iterators over the results returned by a resolver.

The iterator's value_type, obtained when the iterator is dereferenced, is:

const basic_resolver_entry<InternetProtocol>
Thread Safety
Distinct objects: Safe.
Shared objects: Unsafe.

The documentation for this class was generated from the following file: