a CachedIps element More...

#include <ipcache.h>

Collaboration diagram for Dns::CachedIp:

Public Member Functions

 CachedIp (const Ip::Address &anIp)
 
bool bad () const
 whether the address is currently deemed problematic for any reason More...
 
void markAsBad ()
 mark the address as problematic; it might already be marked More...
 
void forgetMarking ()
 undo markAsBad() More...
 

Public Attributes

Ip::Address ip
 

Private Attributes

bool bad_ = false
 whether the address is currently deemed problematic More...
 

Detailed Description

Definition at line 23 of file ipcache.h.

Constructor & Destructor Documentation

◆ CachedIp()

Dns::CachedIp::CachedIp ( const Ip::Address anIp)
inlineexplicit

Definition at line 26 of file ipcache.h.

Member Function Documentation

◆ bad()

bool Dns::CachedIp::bad ( ) const
inline

Definition at line 29 of file ipcache.h.

References bad_.

◆ forgetMarking()

void Dns::CachedIp::forgetMarking ( )
inline

Definition at line 35 of file ipcache.h.

References bad_.

◆ markAsBad()

void Dns::CachedIp::markAsBad ( )
inline

Definition at line 32 of file ipcache.h.

References bad_.

Member Data Documentation

◆ bad_

bool Dns::CachedIp::bad_ = false
private

Definition at line 40 of file ipcache.h.

Referenced by bad(), forgetMarking(), and markAsBad().

◆ ip

Ip::Address Dns::CachedIp::ip

Definition at line 37 of file ipcache.h.

Referenced by Dns::GoodIpsIterator::operator*(), and Dns::GoodIpsIterator::operator->().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors