Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
CCoinsViewBacked Class Reference

CCoinsView backed by another CCoinsView. More...

#include <coins.h>

+ Inheritance diagram for CCoinsViewBacked:
+ Collaboration diagram for CCoinsViewBacked:

Public Member Functions

 CCoinsViewBacked (CCoinsView &viewIn)
 
bool GetCoins (const uint256 &txid, CCoins &coins)
 
bool SetCoins (const uint256 &txid, const CCoins &coins)
 
bool HaveCoins (const uint256 &txid)
 
uint256 GetBestBlock ()
 
bool SetBestBlock (const uint256 &hashBlock)
 
void SetBackend (CCoinsView &viewIn)
 
bool BatchWrite (const std::map< uint256, CCoins > &mapCoins, const uint256 &hashBlock)
 
bool GetStats (CCoinsStats &stats)
 
- Public Member Functions inherited from CCoinsView
virtual ~CCoinsView ()
 

Protected Attributes

CCoinsViewbase
 

Detailed Description

CCoinsView backed by another CCoinsView.

Definition at line 289 of file coins.h.

Constructor & Destructor Documentation

CCoinsViewBacked::CCoinsViewBacked ( CCoinsView viewIn)

Definition at line 62 of file coins.cpp.

Member Function Documentation

bool CCoinsViewBacked::BatchWrite ( const std::map< uint256, CCoins > &  mapCoins,
const uint256 hashBlock 
)
virtual

Reimplemented from CCoinsView.

Reimplemented in CCoinsViewCache.

Definition at line 69 of file coins.cpp.

References base, and CCoinsView::BatchWrite().

+ Here is the call graph for this function:

uint256 CCoinsViewBacked::GetBestBlock ( )
virtual

Reimplemented from CCoinsView.

Reimplemented in CCoinsViewCache.

Definition at line 66 of file coins.cpp.

References base, and CCoinsView::GetBestBlock().

+ Here is the call graph for this function:

bool CCoinsViewBacked::GetCoins ( const uint256 txid,
CCoins coins 
)
virtual

Reimplemented from CCoinsView.

Reimplemented in CCoinsViewCache, and CCoinsViewMemPool.

Definition at line 63 of file coins.cpp.

References base, and CCoinsView::GetCoins().

+ Here is the call graph for this function:

bool CCoinsViewBacked::GetStats ( CCoinsStats stats)
virtual

Reimplemented from CCoinsView.

Definition at line 70 of file coins.cpp.

References base, and CCoinsView::GetStats().

Referenced by gettxoutsetinfo().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool CCoinsViewBacked::HaveCoins ( const uint256 txid)
virtual

Reimplemented from CCoinsView.

Reimplemented in CCoinsViewCache, and CCoinsViewMemPool.

Definition at line 65 of file coins.cpp.

References base, and CCoinsView::HaveCoins().

+ Here is the call graph for this function:

void CCoinsViewBacked::SetBackend ( CCoinsView viewIn)

Definition at line 68 of file coins.cpp.

References base.

Referenced by AcceptToMemoryPool(), and signrawtransaction().

+ Here is the caller graph for this function:

bool CCoinsViewBacked::SetBestBlock ( const uint256 hashBlock)
virtual

Reimplemented from CCoinsView.

Reimplemented in CCoinsViewCache.

Definition at line 67 of file coins.cpp.

References base, and CCoinsView::SetBestBlock().

+ Here is the call graph for this function:

bool CCoinsViewBacked::SetCoins ( const uint256 txid,
const CCoins coins 
)
virtual

Reimplemented from CCoinsView.

Reimplemented in CCoinsViewCache.

Definition at line 64 of file coins.cpp.

References base, and CCoinsView::SetCoins().

+ Here is the call graph for this function:

Member Data Documentation

CCoinsView* CCoinsViewBacked::base
protected

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