Dns::IpsIterator Class Reference
Iterates over any (good and/or bad) IPs in CachedIps, in unspecified order. More...
#include <ipcache.h>
Collaboration diagram for Dns::IpsIterator:
Public Types | |
typedef std::vector< CachedIp > | Raw |
typedef Raw::const_iterator | RawIterator |
using | iterator_category = std::forward_iterator_tag |
using | value_type = const Ip::Address |
using | pointer = value_type * |
using | reference = value_type & |
Public Member Functions | |
IpsIterator (const Raw &raw, const size_t) | |
IpsIterator (const Raw &raw) | |
reference | operator* () const |
pointer | operator-> () const |
IpsIterator & | operator++ () |
IpsIterator | operator++ (int) |
bool | operator== (const IpsIterator them) const |
bool | operator!= (const IpsIterator them) const |
Private Attributes | |
RawIterator | position_ |
current iteration location More... | |
Detailed Description
Member Typedef Documentation
◆ iterator_category
using Dns::IpsIterator::iterator_category = std::forward_iterator_tag |
◆ pointer
using Dns::IpsIterator::pointer = value_type * |
◆ Raw
typedef std::vector<CachedIp> Dns::IpsIterator::Raw |
◆ RawIterator
typedef Raw::const_iterator Dns::IpsIterator::RawIterator |
◆ reference
using Dns::IpsIterator::reference = value_type & |
◆ value_type
using Dns::IpsIterator::value_type = const Ip::Address |
Constructor & Destructor Documentation
◆ IpsIterator() [1/2]
|
inline |
◆ IpsIterator() [2/2]
|
inlineexplicit |
Member Function Documentation
◆ operator!=()
|
inline |
◆ operator*()
|
inline |
◆ operator++() [1/2]
|
inline |
◆ operator++() [2/2]
|
inline |
◆ operator->()
|
inline |
◆ operator==()
|
inline |
Member Data Documentation
◆ position_
|
private |
Definition at line 137 of file ipcache.h.
Referenced by operator*(), operator++(), operator->(), and operator==().
The documentation for this class was generated from the following file:
- src/ipcache.h