veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
altintegration::adaptors::LevelDBStorageIterator Struct Reference

Detailed Description

Definition at line 21 of file leveldb_impl.hpp.

+ Inheritance diagram for altintegration::adaptors::LevelDBStorageIterator:
+ Collaboration diagram for altintegration::adaptors::LevelDBStorageIterator:

Public Member Functions

 LevelDBStorageIterator (leveldb::Iterator *it)
 
bool value (std::vector< uint8_t > &out) const override
 
bool key (std::vector< uint8_t > &out) const override
 
void next () override
 
bool valid () const override
 
void seek_start () override
 
void seek (const std::vector< uint8_t > &val) override
 
virtual bool value (std::vector< uint8_t > &out) const =0
 
virtual bool key (std::vector< uint8_t > &out) const =0
 
virtual void next ()=0
 
virtual bool valid () const =0
 
virtual void seek_start ()=0
 
virtual void seek (const std::vector< uint8_t > &val)=0
 

Constructor & Destructor Documentation

◆ ~LevelDBStorageIterator()

altintegration::adaptors::LevelDBStorageIterator::~LevelDBStorageIterator ( )
inlineoverride

Definition at line 22 of file leveldb_impl.hpp.

22 {
23 if (it_ != nullptr) {
24 delete it_;
25 }
26 }

◆ LevelDBStorageIterator()

altintegration::adaptors::LevelDBStorageIterator::LevelDBStorageIterator ( leveldb::Iterator *  it)
inline

Definition at line 28 of file leveldb_impl.hpp.

28: it_(it) {}

Member Function Documentation

◆ key()

bool altintegration::adaptors::LevelDBStorageIterator::key ( std::vector< uint8_t > &  out) const
overridevirtual

◆ next()

void altintegration::adaptors::LevelDBStorageIterator::next ( )
inlineoverridevirtual

Implements altintegration::adaptors::StorageIterator.

Definition at line 34 of file leveldb_impl.hpp.

34{ it_->Next(); }

◆ seek()

void altintegration::adaptors::LevelDBStorageIterator::seek ( const std::vector< uint8_t > &  val)
overridevirtual

◆ seek_start()

void altintegration::adaptors::LevelDBStorageIterator::seek_start ( )
inlineoverridevirtual

Implements altintegration::adaptors::StorageIterator.

Definition at line 38 of file leveldb_impl.hpp.

38{ it_->SeekToFirst(); }

◆ valid()

bool altintegration::adaptors::LevelDBStorageIterator::valid ( ) const
inlineoverridevirtual

Implements altintegration::adaptors::StorageIterator.

Definition at line 36 of file leveldb_impl.hpp.

36{ return it_->Valid(); }

◆ value()

bool altintegration::adaptors::LevelDBStorageIterator::value ( std::vector< uint8_t > &  out) const
overridevirtual

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