Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CCoinsViewCursor Class Referenceabstract

Cursor for iterating over CoinsView state. More...

#include <coins.h>

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

Public Member Functions

 CCoinsViewCursor (const uint256 &hashBlockIn)
 
virtual ~CCoinsViewCursor ()=default
 
virtual bool GetKey (COutPoint &key) const =0
 
virtual bool GetValue (Coin &coin) const =0
 
virtual bool Valid () const =0
 
virtual void Next ()=0
 
const uint256GetBestBlock () const
 Get best block at the time this cursor was created. More...
 

Private Attributes

uint256 hashBlock
 

Detailed Description

Cursor for iterating over CoinsView state.

Definition at line 234 of file coins.h.

Constructor & Destructor Documentation

◆ CCoinsViewCursor()

CCoinsViewCursor::CCoinsViewCursor ( const uint256 hashBlockIn)
inline

Definition at line 237 of file coins.h.

◆ ~CCoinsViewCursor()

virtual CCoinsViewCursor::~CCoinsViewCursor ( )
virtualdefault

Member Function Documentation

◆ GetBestBlock()

const uint256 & CCoinsViewCursor::GetBestBlock ( ) const
inline

Get best block at the time this cursor was created.

Definition at line 247 of file coins.h.

◆ GetKey()

virtual bool CCoinsViewCursor::GetKey ( COutPoint key) const
pure virtual

Implemented in CCoinsViewDBCursor.

Here is the caller graph for this function:

◆ GetValue()

virtual bool CCoinsViewCursor::GetValue ( Coin coin) const
pure virtual

Implemented in CCoinsViewDBCursor.

Here is the caller graph for this function:

◆ Next()

virtual void CCoinsViewCursor::Next ( )
pure virtual

Implemented in CCoinsViewDBCursor.

Here is the caller graph for this function:

◆ Valid()

virtual bool CCoinsViewCursor::Valid ( ) const
pure virtual

Implemented in CCoinsViewDBCursor.

Here is the caller graph for this function:

Member Data Documentation

◆ hashBlock

uint256 CCoinsViewCursor::hashBlock
private

Definition at line 249 of file coins.h.


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