Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
GenTxid Class Reference

A generic txid reference (txid or wtxid). More...

#include <transaction.h>

Collaboration diagram for GenTxid:
[legend]

Public Member Functions

bool IsWtxid () const
 
const uint256GetHash () const LIFETIMEBOUND
 

Static Public Member Functions

static GenTxid Txid (const uint256 &hash)
 
static GenTxid Wtxid (const uint256 &hash)
 

Private Member Functions

 GenTxid (bool is_wtxid, const uint256 &hash)
 

Private Attributes

bool m_is_wtxid
 
uint256 m_hash
 

Friends

bool operator== (const GenTxid &a, const GenTxid &b)
 
bool operator< (const GenTxid &a, const GenTxid &b)
 

Detailed Description

A generic txid reference (txid or wtxid).

Definition at line 427 of file transaction.h.

Constructor & Destructor Documentation

◆ GenTxid()

GenTxid::GenTxid ( bool  is_wtxid,
const uint256 hash 
)
inlineprivate

Definition at line 431 of file transaction.h.

Member Function Documentation

◆ GetHash()

const uint256 & GenTxid::GetHash ( ) const
inline

Definition at line 437 of file transaction.h.

Here is the caller graph for this function:

◆ IsWtxid()

bool GenTxid::IsWtxid ( ) const
inline

Definition at line 436 of file transaction.h.

Here is the caller graph for this function:

◆ Txid()

static GenTxid GenTxid::Txid ( const uint256 hash)
inlinestatic

Definition at line 434 of file transaction.h.

Here is the caller graph for this function:

◆ Wtxid()

static GenTxid GenTxid::Wtxid ( const uint256 hash)
inlinestatic

Definition at line 435 of file transaction.h.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<

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

Definition at line 439 of file transaction.h.

◆ operator==

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

Definition at line 438 of file transaction.h.

Member Data Documentation

◆ m_hash

uint256 GenTxid::m_hash
private

Definition at line 430 of file transaction.h.

◆ m_is_wtxid

bool GenTxid::m_is_wtxid
private

Definition at line 429 of file transaction.h.


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