 |
Ethereum
PoC-8
The C++ Implementation of Ethereum
|
Go to the documentation of this file.
38 auto const& it = m_db.find(_key.
toString());
47 return m_db.count(_key.
toString()) != 0;
71 BOOST_THROW_EXCEPTION(DatabaseError() <<
errinfo_comment(
"Cannot commit null batch"));
77 BOOST_THROW_EXCEPTION(
78 DatabaseError() <<
errinfo_comment(
"Invalid batch type passed to MemoryDB::commit"));
80 auto const& batch = batchPtr->writeBatch();
84 m_db[e.first] = e.second;
95 for (
auto const& e : m_db)
bool exists(Slice _key) const override
void commit(std::unique_ptr< WriteBatchFace > _batch) override
void kill(Slice _key) override
std::lock_guard< std::mutex > Guard
std::string lookup(Slice _key) const override
void insert(Slice _key, Slice _value) override
void insert(Slice _key, Slice _value) override
std::string toString() const
void kill(Slice _key) override
std::unique_ptr< WriteBatchFace > createWriteBatch() const override
void forEach(std::function< bool(Slice, Slice)> _f) const override
boost::error_info< struct tag_comment, std::string > errinfo_comment
vector_ref< char const > Slice