CatapultServer  v0.5.0.1 (Elephant)
AccountRestrictionCache.h
Go to the documentation of this file.
1 
21 #pragma once
26 
27 namespace catapult { namespace cache {
28 
30  using BasicAccountRestrictionCache = BasicCache<
31  AccountRestrictionCacheDescriptor,
34 
36  class AccountRestrictionCache : public SynchronizedCache<BasicAccountRestrictionCache> {
37  public:
39 
40  public:
42  explicit AccountRestrictionCache(const CacheConfiguration& config, model::NetworkIdentifier networkIdentifier)
43  : SynchronizedCache<BasicAccountRestrictionCache>(BasicAccountRestrictionCache(config, std::move(networkIdentifier)))
44  {}
45  };
46 }}
DEFINE_CACHE_CONSTANTS
#define DEFINE_CACHE_CONSTANTS(NAME)
Defines cache constants for a cache with NAME.
Definition: CacheConstants.h:42
catapult::cache::CacheId::AccountRestriction
AccountRestrictionCacheDelta.h
BasicCache.h
NetworkInfo.h
AccountRestrictionCacheView.h
catapult::cache::AccountRestrictionCache
Synchronized cache composed of account restriction information.
Definition: AccountRestrictionCache.h:36
catapult::cache::AccountRestrictionCacheTypes::BaseSets
AccountRestrictionBaseSets BaseSets
Definition: AccountRestrictionCacheTypes.h:82
catapult::cache::SynchronizedCache
Decorator that synchronizes access to a cache.
Definition: SynchronizedCache.h:202
catapult::model::NetworkIdentifier
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
catapult::cache::BasicCache
Definition: BasicCache.h:32
catapult::cache::CacheConfiguration
Cache configuration.
Definition: CacheConfiguration.h:37
catapult::cache::AccountRestrictionCache::AccountRestrictionCache
AccountRestrictionCache(const CacheConfiguration &config, model::NetworkIdentifier networkIdentifier)
Creates a cache around config and networkIdentifier.
Definition: AccountRestrictionCache.h:42
catapult::cache::BasicAccountRestrictionCache
BasicCache< AccountRestrictionCacheDescriptor, AccountRestrictionCacheTypes::BaseSets, model::NetworkIdentifier > BasicAccountRestrictionCache
Cache composed of account restriction information.
Definition: AccountRestrictionCache.h:33
catapult
Definition: AddressExtractionExtension.cpp:28