6#ifndef VERIBLOCK_POP_CPP_STORAGE_ITERATOR_HPP
7#define VERIBLOCK_POP_CPP_STORAGE_ITERATOR_HPP
24template <
typename BlockT>
26 using prev_hash_t =
typename BlockT::hash_t;
47 virtual bool key(prev_hash_t& out)
const = 0;
An abstraction over on-disk storage block iterator.
virtual bool valid() const =0
Return if valid iterator or not.
virtual void seek_start()=0
Set iterator to the start of the collection.
virtual bool key(prev_hash_t &out) const =0
Return the current block hash key.
virtual bool value(StoredBlockIndex< BlockT > &out) const =0
Return the current block value.
virtual void next()=0
Iterate to the next block.