PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Public Attributes | Private Member Functions | Friends | List of all members
CInv Class Reference

inv message data More...

#include <protocol.h>

Collaboration diagram for CInv:
[legend]

Public Member Functions

 CInv ()
 
 CInv (int typeIn, const uint256 &hashIn)
 
 SERIALIZE_METHODS (CInv, obj)
 
bool IsMasterNodeType () const
 
std::string ToString () const
 

Public Attributes

int type
 
uint256 hash
 

Private Member Functions

std::string GetCommand () const
 

Friends

bool operator< (const CInv &a, const CInv &b)
 

Detailed Description

inv message data

Definition at line 465 of file protocol.h.

Constructor & Destructor Documentation

◆ CInv() [1/2]

CInv::CInv ( )

Definition at line 191 of file protocol.cpp.

Here is the call graph for this function:

◆ CInv() [2/2]

CInv::CInv ( int  typeIn,
const uint256 hashIn 
)

Definition at line 197 of file protocol.cpp.

Member Function Documentation

◆ GetCommand()

std::string CInv::GetCommand ( ) const
private

Definition at line 212 of file protocol.cpp.

Here is the caller graph for this function:

◆ IsMasterNodeType()

bool CInv::IsMasterNodeType ( ) const

Definition at line 208 of file protocol.cpp.

Here is the caller graph for this function:

◆ SERIALIZE_METHODS()

CInv::SERIALIZE_METHODS ( CInv  ,
obj   
)
inline

Definition at line 471 of file protocol.h.

◆ ToString()

std::string CInv::ToString ( ) const

Definition at line 245 of file protocol.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<

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

Definition at line 203 of file protocol.cpp.

Member Data Documentation

◆ hash

uint256 CInv::hash

Definition at line 480 of file protocol.h.

◆ type

int CInv::type
Todo:
: make private (improve encapsulation)

Definition at line 479 of file protocol.h.


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