Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ReachableNets Class Reference

List of reachable networks. More...

#include <netbase.h>

Collaboration diagram for ReachableNets:
[legend]

Public Member Functions

void Add (Network net) EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
 
void Remove (Network net) EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
 
void RemoveAll () EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
 
bool Contains (Network net) const EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
 
bool Contains (const CNetAddr &addr) const EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
 
std::unordered_set< NetworkAll () const EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
 

Private Member Functions

std::unordered_set< Network > m_reachable GUARDED_BY (m_mutex)
 

Private Attributes

Mutex m_mutex
 

Detailed Description

List of reachable networks.

Everything is reachable by default.

Definition at line 101 of file netbase.h.

Member Function Documentation

◆ Add()

void ReachableNets::Add ( Network  net)
inline

Definition at line 103 of file netbase.h.

Here is the caller graph for this function:

◆ All()

std::unordered_set< Network > ReachableNets::All ( ) const
inline

Definition at line 137 of file netbase.h.

Here is the caller graph for this function:

◆ Contains() [1/2]

bool ReachableNets::Contains ( const CNetAddr addr) const
inline

Definition at line 131 of file netbase.h.

Here is the call graph for this function:

◆ Contains() [2/2]

bool ReachableNets::Contains ( Network  net) const
inline

Definition at line 124 of file netbase.h.

Here is the caller graph for this function:

◆ GUARDED_BY()

std::unordered_set< Network > m_reachable ReachableNets::GUARDED_BY ( m_mutex  )
inlineprivate

Definition at line 147 of file netbase.h.

◆ Remove()

void ReachableNets::Remove ( Network  net)
inline

Definition at line 110 of file netbase.h.

Here is the caller graph for this function:

◆ RemoveAll()

void ReachableNets::RemoveAll ( )
inline

Definition at line 117 of file netbase.h.

Here is the caller graph for this function:

Member Data Documentation

◆ m_mutex

Mutex ReachableNets::m_mutex
mutableprivate

Definition at line 145 of file netbase.h.


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