Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
batch_writeable.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_BATCH_WRITEABLE_HPP
7
#define KAGOME_BATCH_WRITEABLE_HPP
8
9
#include <memory>
10
11
#include "
storage/face/write_batch.hpp
"
12
#include "
storage/face/writeable.hpp
"
13
14
namespace
kagome::storage::face
{
15
22
template
<
typename
K,
typename
V>
23
struct
BatchWriteable
{
24
virtual
~BatchWriteable
() =
default
;
25
30
virtual
std::unique_ptr<WriteBatch<K, V>>
batch
() = 0;
31
};
32
33
}
// namespace kagome::storage::face
34
35
#endif // KAGOME_BATCH_WRITEABLE_HPP
kagome::storage::face
Definition:
batch_writeable.hpp:14
kagome::storage::face::BatchWriteable::batch
virtual std::unique_ptr< WriteBatch< K, V > > batch()=0
Creates new Write Batch - an object, which can be used to efficiently write bulk data.
kagome::storage::face::BatchWriteable
A mixin for a map that supports batching for efficiency of modifications.
Definition:
batch_writeable.hpp:23
kagome::storage::face::BatchWriteable::~BatchWriteable
virtual ~BatchWriteable()=default
writeable.hpp
write_batch.hpp
core
storage
face
batch_writeable.hpp
Generated by
1.8.11