Bitcoin Core  0.15.99
P2P Digital Currency
Public Member Functions | Public Attributes | 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, int32_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
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 

Public Attributes

 ADD_SERIALIZE_METHODS
 

Protected Attributes

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

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 102 of file netaddress.h.

Constructor & Destructor Documentation

CSubNet::CSubNet ( )

Definition at line 601 of file netaddress.cpp.

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

Definition at line 607 of file netaddress.cpp.

Here is the call graph for this function:

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

Definition at line 632 of file netaddress.cpp.

Here is the call graph for this function:

CSubNet::CSubNet ( const CNetAddr addr)
explicit

Definition at line 650 of file netaddress.cpp.

Member Function Documentation

bool CSubNet::IsValid ( ) const

Definition at line 721 of file netaddress.cpp.

Here is the caller graph for this function:

bool CSubNet::Match ( const CNetAddr addr) const

Definition at line 657 of file netaddress.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename Stream , typename Operation >
void CSubNet::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

Definition at line 132 of file netaddress.h.

std::string CSubNet::ToString ( ) const

Definition at line 683 of file netaddress.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

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

Definition at line 731 of file netaddress.cpp.

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

Definition at line 736 of file netaddress.cpp.

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

Definition at line 726 of file netaddress.cpp.

Member Data Documentation

CSubNet::ADD_SERIALIZE_METHODS

Definition at line 129 of file netaddress.h.

uint8_t CSubNet::netmask[16]
protected

Netmask, in network byte order.

Definition at line 108 of file netaddress.h.

CNetAddr CSubNet::network
protected

Network (base) address.

Definition at line 106 of file netaddress.h.

bool CSubNet::valid
protected

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

Definition at line 110 of file netaddress.h.


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