Kagome
Polkadot Runtime Engine in C++17
kagome::primitives::CodeSubstituteBlockIds Struct Reference

#include <code_substitutes.hpp>

Inheritance diagram for kagome::primitives::CodeSubstituteBlockIds:
Collaboration diagram for kagome::primitives::CodeSubstituteBlockIds:

Public Member Functions

 CodeSubstituteBlockIds ()=default
 
 CodeSubstituteBlockIds (const CodeSubstituteBlockIds &src)=default
 
 CodeSubstituteBlockIds (CodeSubstituteBlockIds &&src)=default
 
 CodeSubstituteBlockIds (std::initializer_list< primitives::BlockId > init)
 
 ~CodeSubstituteBlockIds ()=default
 
CodeSubstituteBlockIdsoperator= (const CodeSubstituteBlockIds &src)=default
 
CodeSubstituteBlockIdsoperator= (CodeSubstituteBlockIds &&src)=default
 
bool contains (const primitives::BlockInfo &block_info) const
 
bool contains (const primitives::BlockId &block_id) const
 

Detailed Description

A set of valid code_substitute ids. To get a code substitute you should get BlockInfo for this BlockId and pass it to fetchCodeSubstituteByBlockInfo()

Definition at line 19 of file code_substitutes.hpp.

Constructor & Destructor Documentation

kagome::primitives::CodeSubstituteBlockIds::CodeSubstituteBlockIds ( )
default
kagome::primitives::CodeSubstituteBlockIds::CodeSubstituteBlockIds ( const CodeSubstituteBlockIds src)
default
kagome::primitives::CodeSubstituteBlockIds::CodeSubstituteBlockIds ( CodeSubstituteBlockIds &&  src)
default
kagome::primitives::CodeSubstituteBlockIds::CodeSubstituteBlockIds ( std::initializer_list< primitives::BlockId init)
inlineexplicit

Definition at line 24 of file code_substitutes.hpp.

kagome::primitives::CodeSubstituteBlockIds::~CodeSubstituteBlockIds ( )
default

Member Function Documentation

bool kagome::primitives::CodeSubstituteBlockIds::contains ( const primitives::BlockInfo block_info) const
inline

Definition at line 33 of file code_substitutes.hpp.

bool kagome::primitives::CodeSubstituteBlockIds::contains ( const primitives::BlockId block_id) const
inline

Definition at line 37 of file code_substitutes.hpp.

CodeSubstituteBlockIds& kagome::primitives::CodeSubstituteBlockIds::operator= ( const CodeSubstituteBlockIds src)
default
CodeSubstituteBlockIds& kagome::primitives::CodeSubstituteBlockIds::operator= ( CodeSubstituteBlockIds &&  src)
default

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