Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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 (const Txid &hashIn, uint32_t nIn)
 SERIALIZE_METHODS (COutPoint, obj)
void SetNull ()
bool IsNull () const
std::string ToString () const

Public Attributes

Txid hash
uint32_t n

Static Public Attributes

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

Friends

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

Constructor & Destructor Documentation

◆ COutPoint() [1/2]

COutPoint::COutPoint ( )
inline

Definition at line 36 of file transaction.h.

Here is the caller graph for this function:

◆ COutPoint() [2/2]

COutPoint::COutPoint ( const Txid & hashIn,
uint32_t nIn )
inline

Definition at line 37 of file transaction.h.

Member Function Documentation

◆ IsNull()

bool COutPoint::IsNull ( ) const
inline

Definition at line 42 of file transaction.h.

Here is the caller graph for this function:

◆ SERIALIZE_METHODS()

COutPoint::SERIALIZE_METHODS ( COutPoint ,
obj  )
inline

Definition at line 39 of file transaction.h.

Here is the call graph for this function:

◆ SetNull()

void COutPoint::SetNull ( )
inline

Definition at line 41 of file transaction.h.

◆ ToString()

std::string COutPoint::ToString ( ) const

Definition at line 21 of file transaction.cpp.

◆ operator<

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

Definition at line 44 of file transaction.h.

◆ operator==

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

Definition at line 49 of file transaction.h.

Member Data Documentation

◆ hash

Txid COutPoint::hash

Definition at line 31 of file transaction.h.

◆ n

uint32_t COutPoint::n

Definition at line 32 of file transaction.h.

◆ NULL_INDEX

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

Definition at line 34 of file transaction.h.


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