Ethereum  PoC-8
The C++ Implementation of Ethereum
dev::db::MemoryDBWriteBatch Class Reference

#include <MemoryDB.h>

Inheritance diagram for dev::db::MemoryDBWriteBatch:
dev::db::WriteBatchFace

Public Member Functions

void insert (Slice _key, Slice _value) override
 
void kill (Slice _key) override
 
std::unordered_map< std::string, std::string > & writeBatch ()
 
size_t size ()
 
- Public Member Functions inherited from dev::db::WriteBatchFace
virtual ~WriteBatchFace ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from dev::db::WriteBatchFace
 WriteBatchFace ()=default
 
 WriteBatchFace (WriteBatchFace const &)=delete
 
WriteBatchFaceoperator= (WriteBatchFace const &)=delete
 
 WriteBatchFace (WriteBatchFace &&)=delete
 
WriteBatchFaceoperator= (WriteBatchFace &&)=delete
 

Detailed Description

Definition at line 28 of file MemoryDB.h.

Member Function Documentation

◆ insert()

void dev::db::MemoryDBWriteBatch::insert ( Slice  _key,
Slice  _value 
)
overridevirtual

Implements dev::db::WriteBatchFace.

Definition at line 25 of file MemoryDB.cpp.

◆ kill()

void dev::db::MemoryDBWriteBatch::kill ( Slice  _key)
overridevirtual

Implements dev::db::WriteBatchFace.

Definition at line 30 of file MemoryDB.cpp.

◆ size()

size_t dev::db::MemoryDBWriteBatch::size ( )
inline

Definition at line 35 of file MemoryDB.h.

◆ writeBatch()

std::unordered_map<std::string, std::string>& dev::db::MemoryDBWriteBatch::writeBatch ( )
inline

Definition at line 34 of file MemoryDB.h.


The documentation for this class was generated from the following files: