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

◆ iterator_category

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

Definition at line 118 of file ipcache.h.

◆ pointer

Definition at line 120 of file ipcache.h.

◆ Raw

Definition at line 114 of file ipcache.h.

◆ RawIterator

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

Definition at line 115 of file ipcache.h.

◆ reference

Definition at line 121 of file ipcache.h.

◆ value_type

Definition at line 119 of file ipcache.h.

Constructor & Destructor Documentation

◆ IpsIterator() [1/2]

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

Definition at line 123 of file ipcache.h.

◆ IpsIterator() [2/2]

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

Definition at line 125 of file ipcache.h.

Member Function Documentation

◆ operator!=()

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

Definition at line 134 of file ipcache.h.

◆ operator*()

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

Definition at line 127 of file ipcache.h.

References position_.

◆ operator++() [1/2]

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

Definition at line 130 of file ipcache.h.

References position_.

◆ operator++() [2/2]

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

Definition at line 131 of file ipcache.h.

◆ operator->()

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

Definition at line 128 of file ipcache.h.

References position_.

◆ operator==()

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

Definition at line 133 of file ipcache.h.

References position_.

Member Data Documentation

◆ position_

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