Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
wallet::MockableCursor Class Reference

#include <util.h>

Inheritance diagram for wallet::MockableCursor:
[legend]
Collaboration diagram for wallet::MockableCursor:
[legend]

Public Member Functions

 MockableCursor (const MockableData &records, bool pass)
 
 MockableCursor (const MockableData &records, bool pass, Span< const std::byte > prefix)
 
 ~MockableCursor ()
 
Status Next (DataStream &key, DataStream &value) override
 
- Public Member Functions inherited from wallet::DatabaseCursor
 DatabaseCursor ()
 
virtual ~DatabaseCursor ()
 
 DatabaseCursor (const DatabaseCursor &)=delete
 
DatabaseCursoroperator= (const DatabaseCursor &)=delete
 

Public Attributes

MockableData::const_iterator m_cursor
 
MockableData::const_iterator m_cursor_end
 
bool m_pass
 

Additional Inherited Members

- Public Types inherited from wallet::DatabaseCursor
enum class  Status { FAIL , MORE , DONE }
 

Detailed Description

Definition at line 55 of file util.h.

Constructor & Destructor Documentation

◆ MockableCursor() [1/2]

wallet::MockableCursor::MockableCursor ( const MockableData records,
bool  pass 
)
inlineexplicit

Definition at line 62 of file util.h.

◆ MockableCursor() [2/2]

wallet::MockableCursor::MockableCursor ( const MockableData records,
bool  pass,
Span< const std::byte >  prefix 
)

Definition at line 96 of file util.cpp.

◆ ~MockableCursor()

wallet::MockableCursor::~MockableCursor ( )
inline

Definition at line 64 of file util.h.

Member Function Documentation

◆ Next()

DatabaseCursor::Status wallet::MockableCursor::Next ( DataStream key,
DataStream value 
)
overridevirtual

Reimplemented from wallet::DatabaseCursor.

Definition at line 102 of file util.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_cursor

MockableData::const_iterator wallet::MockableCursor::m_cursor

Definition at line 58 of file util.h.

◆ m_cursor_end

MockableData::const_iterator wallet::MockableCursor::m_cursor_end

Definition at line 59 of file util.h.

◆ m_pass

bool wallet::MockableCursor::m_pass

Definition at line 60 of file util.h.


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