Bitcoin Core 28.99.0
P2P Digital Currency
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
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 570 of file coins_tests.cpp.

Member Enumeration Documentation

◆ State

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

Definition at line 571 of file coins_tests.cpp.

Constructor & Destructor Documentation

◆ CoinEntry()

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

Definition at line 576 of file coins_tests.cpp.

Member Function Documentation

◆ IsDirty()

constexpr bool CoinEntry::IsDirty ( ) const
inlineconstexpr

Definition at line 582 of file coins_tests.cpp.

Here is the call graph for this function:

◆ IsDirtyFresh()

constexpr bool CoinEntry::IsDirtyFresh ( ) const
inlineconstexpr

Definition at line 581 of file coins_tests.cpp.

Here is the caller graph for this function:

◆ IsFresh()

constexpr bool CoinEntry::IsFresh ( ) const
inlineconstexpr

Definition at line 583 of file coins_tests.cpp.

Here is the call graph for this function:

◆ operator==()

bool CoinEntry::operator== ( const CoinEntry o) const
default

◆ ToState()

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

Definition at line 585 of file coins_tests.cpp.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 579 of file coins_tests.cpp.

Member Data Documentation

◆ state

const State CoinEntry::state

Definition at line 574 of file coins_tests.cpp.

◆ value

const CAmount CoinEntry::value

Definition at line 573 of file coins_tests.cpp.


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