Dash Core  0.12.2.1
P2P Digital Currency
CCoinsModifier Class Reference

#include <coins.h>

Public Member Functions

CCoinsoperator-> ()
 
CCoinsoperator* ()
 
 ~CCoinsModifier ()
 

Private Member Functions

 CCoinsModifier (CCoinsViewCache &cache_, CCoinsMap::iterator it_, size_t usage)
 

Private Attributes

CCoinsViewCachecache
 
CCoinsMap::iterator it
 
size_t cachedCoinUsage
 

Friends

class CCoinsViewCache
 

Detailed Description

A reference to a mutable cache entry. Encapsulating it allows us to run cleanup code after the modification is finished, and keeping track of concurrent modifications.

Definition at line 364 of file coins.h.

Constructor & Destructor Documentation

◆ CCoinsModifier()

CCoinsModifier::CCoinsModifier ( CCoinsViewCache cache_,
CCoinsMap::iterator  it_,
size_t  usage 
)
private

Definition at line 279 of file coins.cpp.

◆ ~CCoinsModifier()

CCoinsModifier::~CCoinsModifier ( )

Definition at line 284 of file coins.cpp.

Member Function Documentation

◆ operator*()

CCoins& CCoinsModifier::operator* ( )
inline

Definition at line 374 of file coins.h.

◆ operator->()

CCoins* CCoinsModifier::operator-> ( )
inline

Definition at line 373 of file coins.h.

Friends And Related Function Documentation

◆ CCoinsViewCache

friend class CCoinsViewCache
friend

Definition at line 376 of file coins.h.

Member Data Documentation

◆ cache

CCoinsViewCache& CCoinsModifier::cache
private

Definition at line 367 of file coins.h.

Referenced by CCoinsModifier(), and ~CCoinsModifier().

◆ cachedCoinUsage

size_t CCoinsModifier::cachedCoinUsage
private

Definition at line 369 of file coins.h.

Referenced by ~CCoinsModifier().

◆ it

CCoinsMap::iterator CCoinsModifier::it
private

Definition at line 368 of file coins.h.

Referenced by operator*(), operator->(), and ~CCoinsModifier().


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