Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

Specialization of CCoinsViewCursor to iterate over a CCoinsViewDB. More...

#include <txdb.h>

+ Inheritance diagram for CCoinsViewDBCursor:
+ Collaboration diagram for CCoinsViewDBCursor:

Public Member Functions

 ~CCoinsViewDBCursor ()
 
bool GetKey (COutPoint &key) const override
 
bool GetValue (Coin &coin) const override
 
unsigned int GetValueSize () const override
 
bool Valid () const override
 
void Next () override
 
- Public Member Functions inherited from CCoinsViewCursor
 CCoinsViewCursor (const uint256 &hashBlockIn)
 
virtual ~CCoinsViewCursor ()
 
const uint256GetBestBlock () const
 Get best block at the time this cursor was created. More...
 

Private Member Functions

 CCoinsViewDBCursor (CDBIterator *pcursorIn, const uint256 &hashBlockIn)
 

Private Attributes

std::unique_ptr< CDBIteratorpcursor
 
std::pair< char, COutPointkeyTmp
 

Friends

class CCoinsViewDB
 

Detailed Description

Specialization of CCoinsViewCursor to iterate over a CCoinsViewDB.

Definition at line 92 of file txdb.h.

Constructor & Destructor Documentation

◆ ~CCoinsViewDBCursor()

CCoinsViewDBCursor::~CCoinsViewDBCursor ( )
inline

Definition at line 95 of file txdb.h.

◆ CCoinsViewDBCursor()

CCoinsViewDBCursor::CCoinsViewDBCursor ( CDBIterator pcursorIn,
const uint256 hashBlockIn 
)
inlineprivate

Definition at line 105 of file txdb.h.

Member Function Documentation

◆ GetKey()

bool CCoinsViewDBCursor::GetKey ( COutPoint key) const
overridevirtual

Implements CCoinsViewCursor.

Definition at line 195 of file txdb.cpp.

References DB_COIN, and keyTmp.

◆ GetValue()

bool CCoinsViewDBCursor::GetValue ( Coin coin) const
overridevirtual

Implements CCoinsViewCursor.

Definition at line 205 of file txdb.cpp.

References pcursor.

◆ GetValueSize()

unsigned int CCoinsViewDBCursor::GetValueSize ( ) const
overridevirtual

Implements CCoinsViewCursor.

Definition at line 210 of file txdb.cpp.

References pcursor.

◆ Next()

void CCoinsViewDBCursor::Next ( )
overridevirtual

Implements CCoinsViewCursor.

Definition at line 220 of file txdb.cpp.

References keyTmp, and pcursor.

◆ Valid()

bool CCoinsViewDBCursor::Valid ( ) const
overridevirtual

Implements CCoinsViewCursor.

Definition at line 215 of file txdb.cpp.

References DB_COIN, and keyTmp.

Friends And Related Function Documentation

◆ CCoinsViewDB

friend class CCoinsViewDB
friend

Definition at line 110 of file txdb.h.

Member Data Documentation

◆ keyTmp

std::pair<char, COutPoint> CCoinsViewDBCursor::keyTmp
private

Definition at line 108 of file txdb.h.

Referenced by CCoinsViewDB::Cursor(), GetKey(), Next(), and Valid().

◆ pcursor

std::unique_ptr<CDBIterator> CCoinsViewDBCursor::pcursor
private

Definition at line 107 of file txdb.h.

Referenced by CCoinsViewDB::Cursor(), GetValue(), GetValueSize(), and Next().


The documentation for this class was generated from the following files:
Released under the MIT license