Kagome
Polkadot Runtime Engine in C++17
iterable.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_ITERABLE_HPP
7 #define KAGOME_ITERABLE_HPP
8 
9 #include <memory>
10 
12 
13 namespace kagome::storage::face {
14 
21  template <typename K, typename V, typename KView = K>
22  struct Iterable {
24 
25  virtual ~Iterable() = default;
26 
31  virtual std::unique_ptr<Cursor> cursor() = 0;
32  };
33 
34 } // namespace kagome::storage::face
35 
36 #endif // KAGOME_ITERABLE_HPP
An abstraction over generic map cursor.
Definition: map_cursor.hpp:22
A mixin for an iterable map.
Definition: iterable.hpp:22
virtual std::unique_ptr< Cursor > cursor()=0
Returns new key-value iterator.