MySQL 8.0.39
Source Code Documentation
net::ip::basic_resolver_results< InternetProtocol > Class Template Reference

#include <internet.h>

Public Types

using protocol_type = InternetProtocol
 
using endpoint_type = typename protocol_type::endpoint
 
using value_type = basic_resolver_entry< protocol_type >
 
using const_reference = const value_type &
 
using reference = value_type &
 
using const_iterator = typename std::forward_list< value_type >::const_iterator
 
using iterator = const_iterator
 
using difference_type = ptrdiff_t
 
using size_type = size_t
 

Public Member Functions

 basic_resolver_results ()=default
 
size_type size () const noexcept
 
size_type max_size () const noexcept
 
bool empty () const noexcept
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 

Private Member Functions

 basic_resolver_results (std::unique_ptr< addrinfo, void(*)(addrinfo *)> ainfo, const std::string &host_name, const std::string &service_name)
 
 basic_resolver_results (const endpoint_type &ep, const std::string &host_name, const std::string &service_name)
 

Private Attributes

std::forward_list< value_typeresults_
 
size_t size_ {0}
 

Friends

class basic_resolver< protocol_type >
 

Member Typedef Documentation

◆ const_iterator

template<typename InternetProtocol >
using net::ip::basic_resolver_results< InternetProtocol >::const_iterator = typename std::forward_list<value_type>::const_iterator

◆ const_reference

template<typename InternetProtocol >
using net::ip::basic_resolver_results< InternetProtocol >::const_reference = const value_type &

◆ difference_type

template<typename InternetProtocol >
using net::ip::basic_resolver_results< InternetProtocol >::difference_type = ptrdiff_t

◆ endpoint_type

template<typename InternetProtocol >
using net::ip::basic_resolver_results< InternetProtocol >::endpoint_type = typename protocol_type::endpoint

◆ iterator

template<typename InternetProtocol >
using net::ip::basic_resolver_results< InternetProtocol >::iterator = const_iterator

◆ protocol_type

template<typename InternetProtocol >
using net::ip::basic_resolver_results< InternetProtocol >::protocol_type = InternetProtocol

◆ reference

template<typename InternetProtocol >
using net::ip::basic_resolver_results< InternetProtocol >::reference = value_type &

◆ size_type

template<typename InternetProtocol >
using net::ip::basic_resolver_results< InternetProtocol >::size_type = size_t

◆ value_type

template<typename InternetProtocol >
using net::ip::basic_resolver_results< InternetProtocol >::value_type = basic_resolver_entry<protocol_type>

Constructor & Destructor Documentation

◆ basic_resolver_results() [1/3]

template<typename InternetProtocol >
net::ip::basic_resolver_results< InternetProtocol >::basic_resolver_results ( )
default

◆ basic_resolver_results() [2/3]

template<typename InternetProtocol >
net::ip::basic_resolver_results< InternetProtocol >::basic_resolver_results ( std::unique_ptr< addrinfo, void(*)(addrinfo *)>  ainfo,
const std::string &  host_name,
const std::string &  service_name 
)
inlineprivate

◆ basic_resolver_results() [3/3]

template<typename InternetProtocol >
net::ip::basic_resolver_results< InternetProtocol >::basic_resolver_results ( const endpoint_type ep,
const std::string &  host_name,
const std::string &  service_name 
)
inlineprivate

Member Function Documentation

◆ begin()

template<typename InternetProtocol >
const_iterator net::ip::basic_resolver_results< InternetProtocol >::begin ( ) const
inline

◆ cbegin()

template<typename InternetProtocol >
const_iterator net::ip::basic_resolver_results< InternetProtocol >::cbegin ( ) const
inline

◆ cend()

template<typename InternetProtocol >
const_iterator net::ip::basic_resolver_results< InternetProtocol >::cend ( ) const
inline

◆ empty()

template<typename InternetProtocol >
bool net::ip::basic_resolver_results< InternetProtocol >::empty ( ) const
inlinenoexcept

◆ end()

template<typename InternetProtocol >
const_iterator net::ip::basic_resolver_results< InternetProtocol >::end ( ) const
inline

◆ max_size()

template<typename InternetProtocol >
size_type net::ip::basic_resolver_results< InternetProtocol >::max_size ( ) const
inlinenoexcept

◆ size()

template<typename InternetProtocol >
size_type net::ip::basic_resolver_results< InternetProtocol >::size ( ) const
inlinenoexcept

Friends And Related Function Documentation

◆ basic_resolver< protocol_type >

template<typename InternetProtocol >
friend class basic_resolver< protocol_type >
friend

Member Data Documentation

◆ results_

template<typename InternetProtocol >
std::forward_list<value_type> net::ip::basic_resolver_results< InternetProtocol >::results_
private

◆ size_

template<typename InternetProtocol >
size_t net::ip::basic_resolver_results< InternetProtocol >::size_ {0}
private

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