Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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.

Private Attributes

uint256 hashBlock

Detailed Description

Cursor for iterating over CoinsView state.

Definition at line 229 of file coins.h.

Constructor & Destructor Documentation

◆ CCoinsViewCursor()

CCoinsViewCursor::CCoinsViewCursor ( const uint256 & hashBlockIn)
inline

Definition at line 232 of file coins.h.

Here is the caller graph for this function:

◆ ~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 242 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 244 of file coins.h.


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