CatapultServer  v0.5.0.1 (Elephant)
AccountRestrictionCacheTypes.h
Go to the documentation of this file.
1 
21 #pragma once
25 #include "catapult/utils/Hashers.h"
26 
27 namespace catapult {
28  namespace cache {
29  struct AccountRestrictionBaseSetDeltaPointers;
30  struct AccountRestrictionBaseSets;
31  class AccountRestrictionCache;
32  class AccountRestrictionCacheDelta;
33  class AccountRestrictionCacheView;
34  class AccountRestrictionPatriciaTree;
35  struct AccountRestrictionsPrimarySerializer;
36  class BasicAccountRestrictionCacheDelta;
37  class BasicAccountRestrictionCacheView;
38 
39  template<typename TCache, typename TCacheDelta, typename TKey, typename TGetResult>
40  class ReadOnlyArtifactCache;
41  }
42 }
43 
44 namespace catapult { namespace cache {
45 
48  public:
49  static constexpr auto Name = "AccountRestrictionCache";
50 
51  public:
52  // key value types
53  using KeyType = Address;
55 
56  // cache types
60 
63 
64  public:
66  static const auto& GetKeyFromValue(const ValueType& entry) {
67  return entry.address();
68  }
69  };
70 
74 
78  const Address&,
80 
83  };
84 }}
catapult::cache::AccountRestrictionCacheDelta
Delta on top of the account restriction cache.
Definition: AccountRestrictionCacheDelta.h:80
catapult::cache::AccountRestrictionsPrimarySerializer
Primary serializer for account restriction cache.
Definition: AccountRestrictionCacheSerializers.h:29
catapult::cache::AccountRestrictionPatriciaTree
Definition: AccountRestrictionBaseSets.h:36
catapult::cache::AccountRestrictionCacheDescriptor::GetKeyFromValue
static const auto & GetKeyFromValue(const ValueType &entry)
Gets the key corresponding to entry.
Definition: AccountRestrictionCacheTypes.h:66
catapult::cache::BasicAccountRestrictionCacheDelta
Basic delta on top of the account restriction cache.
Definition: AccountRestrictionCacheDelta.h:36
catapult::cache::ReadOnlyArtifactCache
A read-only overlay on top of a cache that provides support for contains, get and isActive.
Definition: MosaicCacheTypes.h:42
SingleSetCacheTypesAdapter.h
catapult::cache::AccountRestrictionCacheDescriptor::Name
static constexpr auto Name
Definition: AccountRestrictionCacheTypes.h:49
catapult::cache::AccountRestrictionCache
Synchronized cache composed of account restriction information.
Definition: AccountRestrictionCache.h:36
catapult::cache::AccountRestrictionCacheView
View on top of the account restriction cache.
Definition: AccountRestrictionCacheView.h:69
catapult::state::AccountRestrictions::address
const Address & address() const
Gets the account address.
Definition: AccountRestrictions.cpp:32
catapult::state::AccountRestrictions
Account restrictions.
Definition: AccountRestrictions.h:28
CacheDescriptorAdapters.h
catapult
Definition: AddressExtractionExtension.cpp:28
Hashers.h
catapult::cache::AccountRestrictionBaseSetDeltaPointers
Definition: AccountRestrictionBaseSets.h:45
catapult::utils::ByteArray< Address_Decoded_Size, Address_tag >
catapult::cache::AccountRestrictionCacheTypes
Account restriction cache types.
Definition: AccountRestrictionCacheTypes.h:72
catapult::cache::AccountRestrictionCacheDescriptor
Describes an account restriction cache.
Definition: AccountRestrictionCacheTypes.h:47
catapult::cache::AccountRestrictionBaseSets
Definition: AccountRestrictionBaseSets.h:47
catapult::cache::detail::UnorderedMapAdapter
Defines cache types for an unordered map based cache.
Definition: CacheDescriptorAdapters.h:35
catapult::cache::BasicAccountRestrictionCacheView
Basic view on top of the account restriction cache.
Definition: AccountRestrictionCacheView.h:35
AccountRestrictions.h