Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

CCoinsViewCursor Class Referenceabstract

Cursor for iterating over CoinsView state. More...

#include <coins.h>

+ Inheritance diagram for CCoinsViewCursor:
+ Collaboration diagram for CCoinsViewCursor:

Public Member Functions

 CCoinsViewCursor (const uint256 &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 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 125 of file coins.h.

Constructor & Destructor Documentation

◆ CCoinsViewCursor()

CCoinsViewCursor::CCoinsViewCursor ( const uint256 hashBlockIn)
inline

Definition at line 128 of file coins.h.

◆ ~CCoinsViewCursor()

virtual CCoinsViewCursor::~CCoinsViewCursor ( )
inlinevirtual

Definition at line 129 of file coins.h.

Member Function Documentation

◆ GetBestBlock()

const uint256& CCoinsViewCursor::GetBestBlock ( ) const
inline

Get best block at the time this cursor was created.

Definition at line 139 of file coins.h.

References hashBlock.

◆ 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

uint256 CCoinsViewCursor::hashBlock
private

Definition at line 141 of file coins.h.

Referenced by GetBestBlock().


The documentation for this class was generated from the following file:
Released under the MIT license