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

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

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

Public Member Functions

 CCoinsViewDBCursor (CDBIterator *pcursorIn, const uint256 &hashBlockIn)
 
 ~CCoinsViewDBCursor ()=default
 
bool GetKey (COutPoint &key) const override
 
bool GetValue (Coin &coin) 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 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 203 of file txdb.cpp.

Constructor & Destructor Documentation

◆ CCoinsViewDBCursor()

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

Definition at line 208 of file txdb.cpp.

◆ ~CCoinsViewDBCursor()

CCoinsViewDBCursor::~CCoinsViewDBCursor ( )
default

Member Function Documentation

◆ GetKey()

bool CCoinsViewDBCursor::GetKey ( COutPoint key) const
overridevirtual

Implements CCoinsViewCursor.

Definition at line 244 of file txdb.cpp.

◆ GetValue()

bool CCoinsViewDBCursor::GetValue ( Coin coin) const
overridevirtual

Implements CCoinsViewCursor.

Definition at line 254 of file txdb.cpp.

◆ Next()

void CCoinsViewDBCursor::Next ( )
overridevirtual

Implements CCoinsViewCursor.

Definition at line 264 of file txdb.cpp.

◆ Valid()

bool CCoinsViewDBCursor::Valid ( ) const
overridevirtual

Implements CCoinsViewCursor.

Definition at line 259 of file txdb.cpp.

Friends And Related Function Documentation

◆ CCoinsViewDB

friend class CCoinsViewDB
friend

Definition at line 222 of file txdb.cpp.

Member Data Documentation

◆ keyTmp

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

Definition at line 220 of file txdb.cpp.

◆ pcursor

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

Definition at line 219 of file txdb.cpp.


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