Bitcoin Core  0.15.99
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CCoinsViewDBCursor Class Reference

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

#include <txdb.h>

Inheritance diagram for CCoinsViewDBCursor:
[legend]
Collaboration diagram for CCoinsViewDBCursor:
[legend]

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 87 of file txdb.h.

Constructor & Destructor Documentation

CCoinsViewDBCursor::~CCoinsViewDBCursor ( )
inline

Definition at line 90 of file txdb.h.

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

Definition at line 100 of file txdb.h.

Member Function Documentation

bool CCoinsViewDBCursor::GetKey ( COutPoint key) const
overridevirtual

Implements CCoinsViewCursor.

Definition at line 191 of file txdb.cpp.

bool CCoinsViewDBCursor::GetValue ( Coin coin) const
overridevirtual

Implements CCoinsViewCursor.

Definition at line 201 of file txdb.cpp.

unsigned int CCoinsViewDBCursor::GetValueSize ( ) const
overridevirtual

Implements CCoinsViewCursor.

Definition at line 206 of file txdb.cpp.

void CCoinsViewDBCursor::Next ( )
overridevirtual

Implements CCoinsViewCursor.

Definition at line 216 of file txdb.cpp.

bool CCoinsViewDBCursor::Valid ( ) const
overridevirtual

Implements CCoinsViewCursor.

Definition at line 211 of file txdb.cpp.

Friends And Related Function Documentation

friend class CCoinsViewDB
friend

Definition at line 105 of file txdb.h.

Member Data Documentation

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

Definition at line 103 of file txdb.h.

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

Definition at line 102 of file txdb.h.


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