PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CCoinsModifier Class Reference

A reference to a mutable cache entry. More...

#include <coins.h>

Collaboration diagram for CCoinsModifier:
[legend]

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 398 of file coins.h.

Constructor & Destructor Documentation

◆ CCoinsModifier()

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

Definition at line 258 of file coins.cpp.

◆ ~CCoinsModifier()

CCoinsModifier::~CCoinsModifier ( )

Definition at line 264 of file coins.cpp.

Member Function Documentation

◆ operator*()

CCoins& CCoinsModifier::operator* ( )
inline

Definition at line 408 of file coins.h.

◆ operator->()

CCoins* CCoinsModifier::operator-> ( )
inline

Definition at line 407 of file coins.h.

Friends And Related Function Documentation

◆ CCoinsViewCache

friend class CCoinsViewCache
friend

Definition at line 410 of file coins.h.

Member Data Documentation

◆ cache

CCoinsViewCache& CCoinsModifier::cache
private

Definition at line 401 of file coins.h.

◆ cachedCoinUsage

size_t CCoinsModifier::cachedCoinUsage
private

Definition at line 403 of file coins.h.

◆ it

CCoinsMap::iterator CCoinsModifier::it
private

Definition at line 402 of file coins.h.


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