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

Detailed Description

Definition at line 20 of file rocksdb_impl.hpp.

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

Public Member Functions

 RocksDBStorageIterator (rocksdb::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

◆ ~RocksDBStorageIterator()

altintegration::adaptors::RocksDBStorageIterator::~RocksDBStorageIterator ( )
inlineoverride

Definition at line 21 of file rocksdb_impl.hpp.

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

◆ RocksDBStorageIterator()

altintegration::adaptors::RocksDBStorageIterator::RocksDBStorageIterator ( rocksdb::Iterator *  it)
inline

Definition at line 27 of file rocksdb_impl.hpp.

27: it_(it) {}

Member Function Documentation

◆ key()

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

◆ next()

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

Implements altintegration::adaptors::StorageIterator.

Definition at line 33 of file rocksdb_impl.hpp.

33{ it_->Next(); }

◆ seek()

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

◆ seek_start()

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

Implements altintegration::adaptors::StorageIterator.

Definition at line 37 of file rocksdb_impl.hpp.

37{ it_->SeekToFirst(); }

◆ valid()

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

Implements altintegration::adaptors::StorageIterator.

Definition at line 35 of file rocksdb_impl.hpp.

35{ return it_->Valid(); }

◆ value()

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

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