Bitcoin ABC 0.30.6
P2P Digital Currency
Public Member Functions | Static Public Attributes | Private 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 (TxId txidIn, uint32_t nIn)
 
 SERIALIZE_METHODS (COutPoint, obj)
 
bool IsNull () const
 
const TxIdGetTxId () const
 
uint32_t GetN () const
 
std::string ToString () const
 

Static Public Attributes

static constexpr uint32_t NULL_INDEX = std::numeric_limits<uint32_t>::max()
 

Private Attributes

TxId txid
 
uint32_t n
 

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 20 of file transaction.h.

Constructor & Destructor Documentation

◆ COutPoint() [1/2]

COutPoint::COutPoint ( )
inline

Definition at line 28 of file transaction.h.

◆ COutPoint() [2/2]

COutPoint::COutPoint ( TxId  txidIn,
uint32_t  nIn 
)
inline

Definition at line 29 of file transaction.h.

Member Function Documentation

◆ GetN()

uint32_t COutPoint::GetN ( ) const
inline

Definition at line 36 of file transaction.h.

Here is the caller graph for this function:

◆ GetTxId()

const TxId & COutPoint::GetTxId ( ) const
inline

Definition at line 35 of file transaction.h.

Here is the caller graph for this function:

◆ IsNull()

bool COutPoint::IsNull ( ) const
inline

Definition at line 33 of file transaction.h.

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

◆ SERIALIZE_METHODS()

COutPoint::SERIALIZE_METHODS ( COutPoint  ,
obj   
)
inline

Definition at line 31 of file transaction.h.

◆ ToString()

std::string COutPoint::ToString ( ) const

Definition at line 15 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 47 of file transaction.h.

◆ operator<

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

Definition at line 38 of file transaction.h.

◆ operator==

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

Definition at line 43 of file transaction.h.

Member Data Documentation

◆ n

uint32_t COutPoint::n
private

Definition at line 23 of file transaction.h.

◆ NULL_INDEX

constexpr uint32_t COutPoint::NULL_INDEX = std::numeric_limits<uint32_t>::max()
staticconstexpr

Definition at line 26 of file transaction.h.

◆ txid

TxId COutPoint::txid
private

Definition at line 22 of file transaction.h.


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