|
Squid Web Cache master
|
Iterates over good IPs in CachedIps, starting at the so called current one. More...
#include <ipcache.h>
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 | |
| GoodIpsIterator (const Raw &raw, const size_t currentPos) | |
| GoodIpsIterator (const Raw &raw) | |
| reference | operator* () const |
| pointer | operator-> () const |
| GoodIpsIterator & | operator++ () |
| GoodIpsIterator | operator++ (int) |
| bool | operator== (const GoodIpsIterator them) const |
| bool | operator!= (const GoodIpsIterator them) const |
Private Member Functions | |
| const CachedIp & | current () const |
| void | next () |
| void | sync () |
Private Attributes | |
| const Raw & | raw_ |
| CachedIps being iterated. | |
| size_t | position_ |
| current iteration location, modulo raw.size() | |
| size_t | processed_ |
| number of visited positions, including skipped ones | |
| using Dns::GoodIpsIterator::iterator_category = std::forward_iterator_tag |
| using Dns::GoodIpsIterator::pointer = value_type * |
| typedef std::vector<CachedIp> Dns::GoodIpsIterator::Raw |
| typedef Raw::const_iterator Dns::GoodIpsIterator::RawIterator |
| using Dns::GoodIpsIterator::reference = value_type & |
| using Dns::GoodIpsIterator::value_type = const Ip::Address |
|
inlineexplicit |
|
inlineprivate |
Definition at line 167 of file ipcache.h.
References position_, and raw_.
Referenced by operator*(), operator->(), and sync().
|
inlineprivate |
Definition at line 168 of file ipcache.h.
References position_, and processed_.
Referenced by operator++(), and sync().
|
inline |
|
inline |
Definition at line 157 of file ipcache.h.
References current(), and Dns::CachedIp::ip.
|
inline |
|
inline |
|
inline |
Definition at line 158 of file ipcache.h.
References current(), and Dns::CachedIp::ip.
|
inline |
Definition at line 163 of file ipcache.h.
References processed_.
|
inlineprivate |
Definition at line 169 of file ipcache.h.
References current(), next(), processed_, and raw_.
Referenced by GoodIpsIterator(), and operator++().
|
private |
|
private |
Definition at line 173 of file ipcache.h.
Referenced by next(), operator==(), and sync().
|
private |