PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Public Attributes | Friends | List of all members
COutPoint Class Reference

An outpoint - a combination of a transaction hash and an index n into its vout. More...

#include <transaction.h>

Collaboration diagram for COutPoint:
[legend]

Public Member Functions

 COutPoint ()
 
 COutPoint (uint256 hashIn, uint32_t nIn)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
void SetNull ()
 
bool IsNull () const
 
bool IsMasternodeReward (const CTransaction *tx) const
 
std::string ToString () const
 
std::string ToStringShort () const
 
uint256 GetHash ()
 

Public Attributes

uint256 hash
 
uint32_t n
 
 ADD_SERIALIZE_METHODS
 

Friends

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

Detailed Description

An outpoint - a combination of a transaction hash and an index n into its vout.

Definition at line 36 of file transaction.h.

Constructor & Destructor Documentation

◆ COutPoint() [1/2]

COutPoint::COutPoint ( )
inline

Definition at line 42 of file transaction.h.

Here is the call graph for this function:

◆ COutPoint() [2/2]

COutPoint::COutPoint ( uint256  hashIn,
uint32_t  nIn 
)
inline

Definition at line 43 of file transaction.h.

Member Function Documentation

◆ GetHash()

uint256 COutPoint::GetHash ( )

Definition at line 31 of file transaction.cpp.

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

◆ IsMasternodeReward()

bool COutPoint::IsMasternodeReward ( const CTransaction tx) const

Definition at line 72 of file transaction.cpp.

Here is the call graph for this function:

◆ IsNull()

bool COutPoint::IsNull ( ) const
inline

Definition at line 54 of file transaction.h.

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

◆ SerializationOp()

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

Definition at line 48 of file transaction.h.

◆ SetNull()

void COutPoint::SetNull ( )
inline

Definition at line 53 of file transaction.h.

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

◆ ToString()

std::string COutPoint::ToString ( ) const

Definition at line 21 of file transaction.cpp.

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

◆ ToStringShort()

std::string COutPoint::ToStringShort ( ) const

Definition at line 26 of file transaction.cpp.

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

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 67 of file transaction.h.

◆ operator<

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

Definition at line 57 of file transaction.h.

◆ operator==

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

Definition at line 62 of file transaction.h.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

COutPoint::ADD_SERIALIZE_METHODS

Definition at line 45 of file transaction.h.

◆ hash

uint256 COutPoint::hash

Definition at line 39 of file transaction.h.

◆ n

uint32_t COutPoint::n

Definition at line 40 of file transaction.h.


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