Kagome
Polkadot Runtime Engine in C++17
kagome::subscription::ExtrinsicEventKeyRepository Class Reference

#include <extrinsic_event_key_repository.hpp>

Collaboration diagram for kagome::subscription::ExtrinsicEventKeyRepository:

Public Types

using ExtrinsicKey = primitives::events::SubscribedExtrinsicId
 

Public Member Functions

 ExtrinsicEventKeyRepository ()
 
ExtrinsicKey add (const primitives::Transaction::Hash &hash) noexcept
 
bool remove (const primitives::Transaction::Hash &hash) noexcept
 
std::optional< ExtrinsicKeyget (const primitives::Transaction::Hash &hash) const noexcept
 

Private Attributes

std::atomic< ExtrinsicKeylast_key_ {}
 
std::unordered_map< primitives::Transaction::Hash, ExtrinsicKeykeys_
 
log::Logger logger_
 

Detailed Description

Definition at line 14 of file extrinsic_event_key_repository.hpp.

Member Typedef Documentation

Constructor & Destructor Documentation

kagome::subscription::ExtrinsicEventKeyRepository::ExtrinsicEventKeyRepository ( )
inline

Definition at line 18 of file extrinsic_event_key_repository.hpp.

Member Function Documentation

ExtrinsicKey kagome::subscription::ExtrinsicEventKeyRepository::add ( const primitives::Transaction::Hash hash)
inlinenoexcept

Definition at line 21 of file extrinsic_event_key_repository.hpp.

std::optional<ExtrinsicKey> kagome::subscription::ExtrinsicEventKeyRepository::get ( const primitives::Transaction::Hash hash) const
inlinenoexcept

Definition at line 35 of file extrinsic_event_key_repository.hpp.

bool kagome::subscription::ExtrinsicEventKeyRepository::remove ( const primitives::Transaction::Hash hash)
inlinenoexcept

Definition at line 31 of file extrinsic_event_key_repository.hpp.

Member Data Documentation

std::unordered_map<primitives::Transaction::Hash, ExtrinsicKey> kagome::subscription::ExtrinsicEventKeyRepository::keys_
private

Definition at line 45 of file extrinsic_event_key_repository.hpp.

std::atomic<ExtrinsicKey> kagome::subscription::ExtrinsicEventKeyRepository::last_key_ {}
private

Definition at line 44 of file extrinsic_event_key_repository.hpp.

log::Logger kagome::subscription::ExtrinsicEventKeyRepository::logger_
private

Definition at line 46 of file extrinsic_event_key_repository.hpp.


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