Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Coin Class Reference

A UTXO entry. More...

#include <coins.h>

Collaboration diagram for Coin:
[legend]

Public Member Functions

 Coin ()
 Empty constructor.
 
 Coin (CTxOut outIn, uint32_t nHeightIn, bool IsCoinbase)
 Constructor from a CTxOut and height/coinbase information.
 
uint32_t GetHeight () const
 
bool IsCoinBase () const
 
bool IsSpent () const
 
CTxOutGetTxOut ()
 
const CTxOutGetTxOut () const
 
void Clear ()
 
template<typename Stream >
void Serialize (Stream &s) const
 
template<typename Stream >
void Unserialize (Stream &s)
 
size_t DynamicMemoryUsage () const
 

Private Attributes

CTxOut out
 Unspent transaction output.
 
uint32_t nHeightAndIsCoinBase
 Whether containing transaction was a coinbase and height at which the transaction was included into a block.
 

Detailed Description

A UTXO entry.

Serialized format:

Definition at line 28 of file coins.h.

Constructor & Destructor Documentation

◆ Coin() [1/2]

Coin::Coin ( )
inline

Empty constructor.

Definition at line 38 of file coins.h.

◆ Coin() [2/2]

Coin::Coin ( CTxOut  outIn,
uint32_t  nHeightIn,
bool  IsCoinbase 
)
inline

Constructor from a CTxOut and height/coinbase information.

Definition at line 41 of file coins.h.

Member Function Documentation

◆ Clear()

void Coin::Clear ( )
inline

Definition at line 52 of file coins.h.

Here is the call graph for this function:

◆ DynamicMemoryUsage()

size_t Coin::DynamicMemoryUsage ( ) const
inline

Definition at line 68 of file coins.h.

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

◆ GetHeight()

uint32_t Coin::GetHeight ( ) const
inline

Definition at line 45 of file coins.h.

Here is the caller graph for this function:

◆ GetTxOut() [1/2]

CTxOut & Coin::GetTxOut ( )
inline

Definition at line 49 of file coins.h.

Here is the caller graph for this function:

◆ GetTxOut() [2/2]

const CTxOut & Coin::GetTxOut ( ) const
inline

Definition at line 50 of file coins.h.

◆ IsCoinBase()

bool Coin::IsCoinBase ( ) const
inline

Definition at line 46 of file coins.h.

Here is the caller graph for this function:

◆ IsSpent()

bool Coin::IsSpent ( ) const
inline

Definition at line 47 of file coins.h.

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

◆ Serialize()

template<typename Stream >
void Coin::Serialize ( Stream s) const
inline

Definition at line 57 of file coins.h.

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

◆ Unserialize()

template<typename Stream >
void Coin::Unserialize ( Stream s)
inline

Definition at line 63 of file coins.h.

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

Member Data Documentation

◆ nHeightAndIsCoinBase

uint32_t Coin::nHeightAndIsCoinBase
private

Whether containing transaction was a coinbase and height at which the transaction was included into a block.

Definition at line 34 of file coins.h.

◆ out

CTxOut Coin::out
private

Unspent transaction output.

Definition at line 30 of file coins.h.


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