Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
CoinEntry Struct Reference

Public Types

enum class  State { CLEAN , DIRTY , FRESH , DIRTY_FRESH }

Public Member Functions

constexpr CoinEntry (const CAmount v, const State s)
bool operator== (const CoinEntry &o) const =default
constexpr bool IsDirtyFresh () const
constexpr bool IsDirty () const
constexpr bool IsFresh () const

Static Public Member Functions

static constexpr State ToState (const bool is_dirty, const bool is_fresh)

Public Attributes

const CAmount value
const State state

Friends

std::ostream & operator<< (std::ostream &os, const CoinEntry &e)

Detailed Description

Definition at line 576 of file coins_tests.cpp.

Member Enumeration Documentation

◆ State

enum class CoinEntry::State
strong
Enumerator
CLEAN 
DIRTY 
FRESH 
DIRTY_FRESH 

Definition at line 577 of file coins_tests.cpp.

Constructor & Destructor Documentation

◆ CoinEntry()

CoinEntry::CoinEntry ( const CAmount v,
const State s )
inlineconstexpr

Definition at line 582 of file coins_tests.cpp.

Here is the caller graph for this function:

Member Function Documentation

◆ IsDirty()

bool CoinEntry::IsDirty ( ) const
inlineconstexpr

Definition at line 588 of file coins_tests.cpp.

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

◆ IsDirtyFresh()

bool CoinEntry::IsDirtyFresh ( ) const
inlineconstexpr

Definition at line 587 of file coins_tests.cpp.

Here is the caller graph for this function:

◆ IsFresh()

bool CoinEntry::IsFresh ( ) const
inlineconstexpr

Definition at line 589 of file coins_tests.cpp.

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

◆ operator==()

bool CoinEntry::operator== ( const CoinEntry & o) const
default
Here is the call graph for this function:

◆ ToState()

constexpr State CoinEntry::ToState ( const bool is_dirty,
const bool is_fresh )
inlinestaticconstexpr

Definition at line 591 of file coins_tests.cpp.

Here is the caller graph for this function:

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const CoinEntry & e )
friend

Definition at line 585 of file coins_tests.cpp.

Member Data Documentation

◆ state

const State CoinEntry::state

Definition at line 580 of file coins_tests.cpp.

◆ value

const CAmount CoinEntry::value

Definition at line 579 of file coins_tests.cpp.


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