Kagome
Polkadot Runtime Engine in C++17
kagome::storage::face::Writeable< K, V > Struct Template Referenceabstract

An mixin for modifiable map. More...

#include <writeable.hpp>

Inheritance diagram for kagome::storage::face::Writeable< K, V >:
Collaboration diagram for kagome::storage::face::Writeable< K, V >:

Public Member Functions

virtual ~Writeable ()=default
 
virtual outcome::result< void > put (const K &key, const V &value)=0
 Store value by key. More...
 
virtual outcome::result< void > put (const K &key, V &&value)=0
 
virtual outcome::result< void > remove (const K &key)=0
 Remove value by key. More...
 

Detailed Description

template<typename K, typename V>
struct kagome::storage::face::Writeable< K, V >

An mixin for modifiable map.

Template Parameters
Kkey type
Vvalue type

Definition at line 19 of file writeable.hpp.

Constructor & Destructor Documentation

template<typename K, typename V>
virtual kagome::storage::face::Writeable< K, V >::~Writeable ( )
virtualdefault

Member Function Documentation

template<typename K, typename V>
virtual outcome::result<void> kagome::storage::face::Writeable< K, V >::put ( const K &  key,
const V &  value 
)
pure virtual
template<typename K, typename V>
virtual outcome::result<void> kagome::storage::face::Writeable< K, V >::remove ( const K &  key)
pure virtual

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