An iterator over the entries produced by a resolver. More...
#include <basic_resolver_iterator.hpp>
Public Types | |
typedef std::ptrdiff_t | difference_type |
The type used for the distance between two iterators. More... | |
typedef basic_resolver_entry < InternetProtocol > | value_type |
The type of the value pointed to by the iterator. More... | |
typedef const basic_resolver_entry < InternetProtocol > * | pointer |
The type of the result of applying operator->() to the iterator. More... | |
typedef const basic_resolver_entry < InternetProtocol > & | reference |
The type of the result of applying operator*() to the iterator. More... | |
typedef std::forward_iterator_tag | iterator_category |
The iterator category. More... | |
Public Member Functions | |
basic_resolver_iterator () | |
Default constructor creates an end iterator. More... | |
const basic_resolver_entry < InternetProtocol > & | operator* () const |
Dereference an iterator. More... | |
const basic_resolver_entry < InternetProtocol > * | operator-> () const |
Dereference an iterator. More... | |
basic_resolver_iterator & | operator++ () |
Increment operator (prefix). More... | |
basic_resolver_iterator | operator++ (int) |
Increment operator (postfix). More... | |
Static Public Member Functions | |
static basic_resolver_iterator | create (boost::asio::detail::addrinfo_type *address_info, const std::string &host_name, const std::string &service_name) |
Create an iterator from an addrinfo list returned by getaddrinfo. More... | |
static basic_resolver_iterator | create (const typename InternetProtocol::endpoint &endpoint, const std::string &host_name, const std::string &service_name) |
Create an iterator from an endpoint, host name and service name. More... | |
template<typename EndpointIterator > | |
static basic_resolver_iterator | create (EndpointIterator begin, EndpointIterator end, const std::string &host_name, const std::string &service_name) |
Create an iterator from a sequence of endpoints, host and service name. More... | |
Friends | |
bool | operator== (const basic_resolver_iterator &a, const basic_resolver_iterator &b) |
Test two iterators for equality. More... | |
bool | operator!= (const basic_resolver_iterator &a, const basic_resolver_iterator &b) |
Test two iterators for inequality. More... | |
An iterator over the entries produced by a resolver.
The boost::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:
typedef std::ptrdiff_t boost::asio::ip::basic_resolver_iterator< InternetProtocol >::difference_type |
The type used for the distance between two iterators.
typedef std::forward_iterator_tag boost::asio::ip::basic_resolver_iterator< InternetProtocol >::iterator_category |
The iterator category.
typedef const basic_resolver_entry<InternetProtocol>* boost::asio::ip::basic_resolver_iterator< InternetProtocol >::pointer |
The type of the result of applying operator->() to the iterator.
typedef const basic_resolver_entry<InternetProtocol>& boost::asio::ip::basic_resolver_iterator< InternetProtocol >::reference |
The type of the result of applying operator*() to the iterator.
typedef basic_resolver_entry<InternetProtocol> boost::asio::ip::basic_resolver_iterator< InternetProtocol >::value_type |
The type of the value pointed to by the iterator.
|
inline |
Default constructor creates an end iterator.
|
inlinestatic |
Create an iterator from an addrinfo list returned by getaddrinfo.
References boost::asio::ip::host_name().
|
inlinestatic |
Create an iterator from an endpoint, host name and service name.
|
inlinestatic |
Create an iterator from a sequence of endpoints, host and service name.
References boost::asio::end.
|
inline |
Dereference an iterator.
|
inline |
Increment operator (prefix).
|
inline |
Increment operator (postfix).
|
inline |
Dereference an iterator.
|
friend |
Test two iterators for inequality.
|
friend |
Test two iterators for equality.