Realistic 3D camera system
3D camera system components
Public Types | Public Member Functions | Static Public Member Functions | 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>

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_iteratoroperator++ ()
 Increment operator (prefix). More...
 
basic_resolver_iterator operator++ (int)
 Increment operator (postfix). More...
 

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. 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...
 

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.

Definition at line 51 of file basic_resolver_iterator.hpp.

Member Typedef Documentation

template<typename InternetProtocol>
typedef std::ptrdiff_t asio::ip::basic_resolver_iterator< InternetProtocol >::difference_type

The type used for the distance between two iterators.

Definition at line 55 of file basic_resolver_iterator.hpp.

template<typename InternetProtocol>
typedef std::forward_iterator_tag asio::ip::basic_resolver_iterator< InternetProtocol >::iterator_category

The iterator category.

Definition at line 67 of file basic_resolver_iterator.hpp.

template<typename InternetProtocol>
typedef const basic_resolver_entry<InternetProtocol>* asio::ip::basic_resolver_iterator< InternetProtocol >::pointer

The type of the result of applying operator->() to the iterator.

Definition at line 61 of file basic_resolver_iterator.hpp.

template<typename InternetProtocol>
typedef const basic_resolver_entry<InternetProtocol>& asio::ip::basic_resolver_iterator< InternetProtocol >::reference

The type of the result of applying operator*() to the iterator.

Definition at line 64 of file basic_resolver_iterator.hpp.

template<typename InternetProtocol>
typedef basic_resolver_entry<InternetProtocol> asio::ip::basic_resolver_iterator< InternetProtocol >::value_type

The type of the value pointed to by the iterator.

Definition at line 58 of file basic_resolver_iterator.hpp.

Constructor & Destructor Documentation

template<typename InternetProtocol>
asio::ip::basic_resolver_iterator< InternetProtocol >::basic_resolver_iterator ( )
inline

Default constructor creates an end iterator.

Definition at line 70 of file basic_resolver_iterator.hpp.

Member Function Documentation

template<typename InternetProtocol>
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 
)
inlinestatic

Create an iterator from an addrinfo list returned by getaddrinfo.

Definition at line 76 of file basic_resolver_iterator.hpp.

template<typename InternetProtocol>
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 
)
inlinestatic

Create an iterator from an endpoint, host name and service name.

Definition at line 111 of file basic_resolver_iterator.hpp.

template<typename InternetProtocol>
template<typename EndpointIterator >
static basic_resolver_iterator asio::ip::basic_resolver_iterator< InternetProtocol >::create ( EndpointIterator  begin,
EndpointIterator  end,
const std::string &  host_name,
const std::string &  service_name 
)
inlinestatic

Create an iterator from a sequence of endpoints, host and service name.

Definition at line 125 of file basic_resolver_iterator.hpp.

template<typename InternetProtocol>
const basic_resolver_entry<InternetProtocol>& asio::ip::basic_resolver_iterator< InternetProtocol >::operator* ( ) const
inline

Dereference an iterator.

Definition at line 185 of file basic_resolver_iterator.hpp.

template<typename InternetProtocol>
basic_resolver_iterator& asio::ip::basic_resolver_iterator< InternetProtocol >::operator++ ( )
inline

Increment operator (prefix).

Definition at line 197 of file basic_resolver_iterator.hpp.

template<typename InternetProtocol>
basic_resolver_iterator asio::ip::basic_resolver_iterator< InternetProtocol >::operator++ ( int  )
inline

Increment operator (postfix).

Definition at line 204 of file basic_resolver_iterator.hpp.

template<typename InternetProtocol>
const basic_resolver_entry<InternetProtocol>* asio::ip::basic_resolver_iterator< InternetProtocol >::operator-> ( ) const
inline

Dereference an iterator.

Definition at line 191 of file basic_resolver_iterator.hpp.

Friends And Related Function Documentation

template<typename InternetProtocol>
bool operator!= ( const basic_resolver_iterator< InternetProtocol > &  a,
const basic_resolver_iterator< InternetProtocol > &  b 
)
friend

Test two iterators for inequality.

Definition at line 219 of file basic_resolver_iterator.hpp.

template<typename InternetProtocol>
bool operator== ( const basic_resolver_iterator< InternetProtocol > &  a,
const basic_resolver_iterator< InternetProtocol > &  b 
)
friend

Test two iterators for equality.

Definition at line 212 of file basic_resolver_iterator.hpp.


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