Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
CSubNet Class Reference

#include <netaddress.h>

Collaboration diagram for CSubNet:
[legend]

Public Member Functions

 CSubNet ()
 
 CSubNet (const CNetAddr &addr, uint8_t mask)
 
 CSubNet (const CNetAddr &addr, const CNetAddr &mask)
 
 CSubNet (const CNetAddr &addr)
 
bool Match (const CNetAddr &addr) const
 
std::string ToString () const
 
bool IsValid () const
 
 SERIALIZE_METHODS (CSubNet, obj)
 

Protected Member Functions

bool SanityCheck () const
 

Protected Attributes

CNetAddr network
 Network (base) address.
 
uint8_t netmask [16]
 Netmask, in network byte order.
 
bool valid
 Is this value valid? (only used to signal parse errors)
 

Friends

bool operator== (const CSubNet &a, const CSubNet &b)
 
bool operator!= (const CSubNet &a, const CSubNet &b)
 
bool operator< (const CSubNet &a, const CSubNet &b)
 

Detailed Description

Definition at line 495 of file netaddress.h.

Constructor & Destructor Documentation

◆ CSubNet() [1/4]

CSubNet::CSubNet ( )

Definition at line 1098 of file netaddress.cpp.

Here is the call graph for this function:

◆ CSubNet() [2/4]

CSubNet::CSubNet ( const CNetAddr addr,
uint8_t  mask 
)

Definition at line 1102 of file netaddress.cpp.

Here is the call graph for this function:

◆ CSubNet() [3/4]

CSubNet::CSubNet ( const CNetAddr addr,
const CNetAddr mask 
)

Definition at line 1153 of file netaddress.cpp.

Here is the call graph for this function:

◆ CSubNet() [4/4]

CSubNet::CSubNet ( const CNetAddr addr)
explicit

Definition at line 1184 of file netaddress.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ IsValid()

bool CSubNet::IsValid ( ) const

Definition at line 1229 of file netaddress.cpp.

Here is the caller graph for this function:

◆ Match()

bool CSubNet::Match ( const CNetAddr addr) const
Returns
True if this subnet is valid, the specified address is valid, and the specified address belongs in this subnet.

Definition at line 1201 of file netaddress.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SanityCheck()

bool CSubNet::SanityCheck ( ) const
protected

Definition at line 1233 of file netaddress.cpp.

Here is the call graph for this function:

◆ SERIALIZE_METHODS()

CSubNet::SERIALIZE_METHODS ( CSubNet  ,
obj   
)
inline

Definition at line 525 of file netaddress.h.

Here is the call graph for this function:

◆ ToString()

std::string CSubNet::ToString ( ) const

Definition at line 1214 of file netaddress.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const CSubNet a,
const CSubNet b 
)
friend

Definition at line 520 of file netaddress.h.

◆ operator<

bool operator< ( const CSubNet a,
const CSubNet b 
)
friend

Definition at line 1252 of file netaddress.cpp.

◆ operator==

bool operator== ( const CSubNet a,
const CSubNet b 
)
friend

Definition at line 1247 of file netaddress.cpp.

Member Data Documentation

◆ netmask

uint8_t CSubNet::netmask[16]
protected

Netmask, in network byte order.

Definition at line 500 of file netaddress.h.

◆ network

CNetAddr CSubNet::network
protected

Network (base) address.

Definition at line 498 of file netaddress.h.

◆ valid

bool CSubNet::valid
protected

Is this value valid? (only used to signal parse errors)

Definition at line 502 of file netaddress.h.


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