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< CachedIpRaw
 
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
 
IpsIteratoroperator++ ()
 
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

Definition at line 111 of file ipcache.h.

Member Typedef Documentation

using Dns::IpsIterator::iterator_category = std::forward_iterator_tag

Definition at line 118 of file ipcache.h.

Definition at line 120 of file ipcache.h.

Definition at line 114 of file ipcache.h.

typedef Raw::const_iterator Dns::IpsIterator::RawIterator

Definition at line 115 of file ipcache.h.

Definition at line 121 of file ipcache.h.

Definition at line 119 of file ipcache.h.

Constructor & Destructor Documentation

Dns::IpsIterator::IpsIterator ( const Raw raw,
const size_t   
)
inline

Definition at line 123 of file ipcache.h.

Dns::IpsIterator::IpsIterator ( const Raw raw)
inlineexplicit

Definition at line 125 of file ipcache.h.

Member Function Documentation

bool Dns::IpsIterator::operator!= ( const IpsIterator  them) const
inline

Definition at line 134 of file ipcache.h.

reference Dns::IpsIterator::operator* ( ) const
inline

Definition at line 127 of file ipcache.h.

References position_.

IpsIterator& Dns::IpsIterator::operator++ ( )
inline

Definition at line 130 of file ipcache.h.

References position_.

IpsIterator Dns::IpsIterator::operator++ ( int  )
inline

Definition at line 131 of file ipcache.h.

pointer Dns::IpsIterator::operator-> ( ) const
inline

Definition at line 128 of file ipcache.h.

References position_.

bool Dns::IpsIterator::operator== ( const IpsIterator  them) const
inline

Definition at line 133 of file ipcache.h.

References position_.

Member Data Documentation

RawIterator Dns::IpsIterator::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:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors