Kagome
Polkadot Runtime Engine in C++17
|
#include <inherent_data.hpp>
Public Member Functions | |
template<typename T > | |
outcome::result< void > | putData (InherentIdentifier identifier, const T &inherent) |
template<typename T > | |
void | replaceData (InherentIdentifier identifier, const T &inherent) |
template<typename T > | |
outcome::result< T > | getData (const InherentIdentifier &identifier) const |
bool | operator== (const InherentData &rhs) const |
bool | operator!= (const InherentData &rhs) const |
Public Attributes | |
std::map< InherentIdentifier, common::Buffer > | data |
Inherent data to include in a block
Definition at line 39 of file inherent_data.hpp.
|
inline |
Definition at line 73 of file inherent_data.hpp.
bool kagome::primitives::InherentData::operator!= | ( | const InherentData & | rhs | ) | const |
Definition at line 26 of file inherent_data.cpp.
bool kagome::primitives::InherentData::operator== | ( | const InherentData & | rhs | ) | const |
Definition at line 21 of file inherent_data.cpp.
|
inline |
Put data for an inherent into the internal storage.
Definition at line 49 of file inherent_data.hpp.
|
inline |
Replace the data for an inherent. If it does not exist, the data is just inserted.
Definition at line 65 of file inherent_data.hpp.
std::map<InherentIdentifier, common::Buffer> kagome::primitives::InherentData::data |
Definition at line 86 of file inherent_data.hpp.