veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
|
An abstraction over on-disk storage block iterator. More...
veriblock-pop-cpp does not dictate how to iterate blocks over the storage. Altchain must create derived class.
Definition at line 25 of file block_iterator.hpp.
#include <block_iterator.hpp>
Public Types | |
using | prev_hash_t = typename BlockT::hash_t |
Public Member Functions | |
virtual void | next ()=0 |
Iterate to the next block. More... | |
virtual bool | value (StoredBlockIndex< BlockT > &out) const =0 |
Return the current block value. More... | |
virtual bool | key (prev_hash_t &out) const =0 |
Return the current block hash key. More... | |
virtual bool | valid () const =0 |
Return if valid iterator or not. More... | |
virtual void | seek_start ()=0 |
Set iterator to the start of the collection. More... | |
using altintegration::BlockIterator< BlockT >::prev_hash_t = typename BlockT::hash_t |
Definition at line 26 of file block_iterator.hpp.
|
pure virtual |
[out] | out | block hash |
Implemented in altintegration::adaptors::BlockIteratorImpl< BlockT >.
|
pure virtual |
Implemented in altintegration::adaptors::BlockIteratorImpl< BlockT >.
|
pure virtual |
Implemented in altintegration::adaptors::BlockIteratorImpl< BlockT >.
|
pure virtual |
Implemented in altintegration::adaptors::BlockIteratorImpl< BlockT >.
|
pure virtual |
[out] | out | block, altintegration::StoredBlockIndex |
Implemented in altintegration::adaptors::BlockIteratorImpl< BlockT >.