Bitcoin ABC  0.29.2
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 BlockHash &hashBlockIn)
 
virtual ~CCoinsViewCursor ()
 
virtual bool GetKey (COutPoint &key) const =0
 
virtual bool GetValue (Coin &coin) const =0
 
virtual unsigned int GetValueSize () const =0
 
virtual bool Valid () const =0
 
virtual void Next ()=0
 
const BlockHashGetBestBlock () const
 Get best block at the time this cursor was created. More...
 

Private Attributes

BlockHash hashBlock
 

Detailed Description

Cursor for iterating over CoinsView state.

Definition at line 127 of file coins.h.

Constructor & Destructor Documentation

◆ CCoinsViewCursor()

CCoinsViewCursor::CCoinsViewCursor ( const BlockHash hashBlockIn)
inline

Definition at line 129 of file coins.h.

◆ ~CCoinsViewCursor()

virtual CCoinsViewCursor::~CCoinsViewCursor ( )
inlinevirtual

Definition at line 130 of file coins.h.

Member Function Documentation

◆ GetBestBlock()

const BlockHash& CCoinsViewCursor::GetBestBlock ( ) const
inline

Get best block at the time this cursor was created.

Definition at line 140 of file coins.h.

◆ GetKey()

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

Implemented in CCoinsViewDBCursor.

◆ GetValue()

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

Implemented in CCoinsViewDBCursor.

◆ GetValueSize()

virtual unsigned int CCoinsViewCursor::GetValueSize ( ) const
pure virtual

Implemented in CCoinsViewDBCursor.

◆ Next()

virtual void CCoinsViewCursor::Next ( )
pure virtual

Implemented in CCoinsViewDBCursor.

◆ Valid()

virtual bool CCoinsViewCursor::Valid ( ) const
pure virtual

Implemented in CCoinsViewDBCursor.

Member Data Documentation

◆ hashBlock

BlockHash CCoinsViewCursor::hashBlock
private

Definition at line 143 of file coins.h.


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