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

Detailed Description

Definition at line 70 of file inmem_storage_impl.hpp.

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

Public Member Functions

 InmemWriteBatch (std::map< std::vector< uint8_t >, std::vector< uint8_t > > &storage)
 
void write (const std::vector< uint8_t > &key, const std::vector< uint8_t > &value) override
 
void writeBatch () override
 
virtual void write (const std::vector< uint8_t > &key, const std::vector< uint8_t > &value)=0
 
virtual void writeBatch ()=0
 

Constructor & Destructor Documentation

◆ InmemWriteBatch()

altintegration::adaptors::InmemWriteBatch::InmemWriteBatch ( std::map< std::vector< uint8_t >, std::vector< uint8_t > > &  storage)
inline

Definition at line 73 of file inmem_storage_impl.hpp.

74 : storage_(storage) {}

Member Function Documentation

◆ write()

void altintegration::adaptors::InmemWriteBatch::write ( const std::vector< uint8_t > &  key,
const std::vector< uint8_t > &  value 
)
inlineoverridevirtual

Implements altintegration::adaptors::WriteBatch.

Definition at line 76 of file inmem_storage_impl.hpp.

77 {
78 storage_[key] = value;
79 }

◆ writeBatch()

void altintegration::adaptors::InmemWriteBatch::writeBatch ( )
inlineoverridevirtual

Implements altintegration::adaptors::WriteBatch.

Definition at line 81 of file inmem_storage_impl.hpp.

81{}

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