PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Public Attributes | 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)
 
 CInv (const std::string &strType, const uint256 &hashIn)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
bool IsKnownType () const
 
bool IsMasterNodeType () const
 
const char * GetCommand () const
 
std::string ToString () const
 

Public Attributes

 ADD_SERIALIZE_METHODS
 
int type
 
uint256 hash
 

Friends

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

Detailed Description

inv message data

Definition at line 358 of file protocol.h.

Constructor & Destructor Documentation

◆ CInv() [1/3]

CInv::CInv ( )

Definition at line 204 of file protocol.cpp.

Here is the call graph for this function:

◆ CInv() [2/3]

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

Definition at line 210 of file protocol.cpp.

◆ CInv() [3/3]

CInv::CInv ( const std::string &  strType,
const uint256 hashIn 
)

Definition at line 216 of file protocol.cpp.

Member Function Documentation

◆ GetCommand()

const char * CInv::GetCommand ( ) const

Definition at line 244 of file protocol.cpp.

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

◆ IsKnownType()

bool CInv::IsKnownType ( ) const

Definition at line 235 of file protocol.cpp.

Here is the caller graph for this function:

◆ IsMasterNodeType()

bool CInv::IsMasterNodeType ( ) const

Definition at line 240 of file protocol.cpp.

Here is the caller graph for this function:

◆ SerializationOp()

template<typename Stream , typename Operation >
void CInv::SerializationOp ( Stream &  s,
Operation  ser_action,
int  nType,
int  nVersion 
)
inline

Definition at line 368 of file protocol.h.

◆ ToString()

std::string CInv::ToString ( ) const

Definition at line 254 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 230 of file protocol.cpp.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CInv::ADD_SERIALIZE_METHODS

Definition at line 365 of file protocol.h.

◆ hash

uint256 CInv::hash

Definition at line 384 of file protocol.h.

◆ type

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

Definition at line 383 of file protocol.h.


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