An iterator over the entries produced by a resolver. More...
#include <basic_resolver_iterator.hpp>
Public Member Functions | |
basic_resolver_iterator () | |
Default constructor creates an end iterator. | |
Static Public Member Functions | |
static basic_resolver_iterator | create (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. | |
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. | |
Private Types | |
typedef values_type::const_iterator | values_iter_type |
typedef std::vector < basic_resolver_entry < InternetProtocol > > | values_type |
Private Member Functions | |
const basic_resolver_entry < InternetProtocol > & | dereference () const |
bool | equal (const basic_resolver_iterator &other) const |
void | increment () |
Private Attributes | |
boost::optional< values_iter_type > | iter_ |
boost::shared_ptr< values_type > | values_ |
Friends | |
class | boost::iterator_core_access |
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>
Definition at line 49 of file basic_resolver_iterator.hpp.
typedef values_type::const_iterator asio::ip::basic_resolver_iterator< InternetProtocol >::values_iter_type [private] |
Definition at line 144 of file basic_resolver_iterator.hpp.
typedef std::vector<basic_resolver_entry<InternetProtocol> > asio::ip::basic_resolver_iterator< InternetProtocol >::values_type [private] |
Definition at line 143 of file basic_resolver_iterator.hpp.
asio::ip::basic_resolver_iterator< InternetProtocol >::basic_resolver_iterator | ( | ) | [inline] |
Default constructor creates an end iterator.
Definition at line 57 of file basic_resolver_iterator.hpp.
static basic_resolver_iterator asio::ip::basic_resolver_iterator< InternetProtocol >::create | ( | asio::detail::addrinfo_type * | address_info, |
const std::string & | host_name, | ||
const std::string & | service_name | ||
) | [inline, static] |
Create an iterator from an addrinfo list returned by getaddrinfo.
Definition at line 62 of file basic_resolver_iterator.hpp.
static basic_resolver_iterator asio::ip::basic_resolver_iterator< InternetProtocol >::create | ( | const typename InternetProtocol::endpoint & | endpoint, |
const std::string & | host_name, | ||
const std::string & | service_name | ||
) | [inline, static] |
Create an iterator from an endpoint, host name and service name.
Definition at line 102 of file basic_resolver_iterator.hpp.
const basic_resolver_entry<InternetProtocol>& asio::ip::basic_resolver_iterator< InternetProtocol >::dereference | ( | ) | const [inline, private] |
Definition at line 138 of file basic_resolver_iterator.hpp.
bool asio::ip::basic_resolver_iterator< InternetProtocol >::equal | ( | const basic_resolver_iterator< InternetProtocol > & | other | ) | const [inline, private] |
Definition at line 129 of file basic_resolver_iterator.hpp.
void asio::ip::basic_resolver_iterator< InternetProtocol >::increment | ( | ) | [inline, private] |
Definition at line 118 of file basic_resolver_iterator.hpp.
friend class boost::iterator_core_access [friend] |
Definition at line 116 of file basic_resolver_iterator.hpp.
boost::optional<values_iter_type> asio::ip::basic_resolver_iterator< InternetProtocol >::iter_ [private] |
Definition at line 146 of file basic_resolver_iterator.hpp.
boost::shared_ptr<values_type> asio::ip::basic_resolver_iterator< InternetProtocol >::values_ [private] |
Definition at line 145 of file basic_resolver_iterator.hpp.