CatapultServer  v0.5.0.1 (Elephant)
SecretLockInfoCacheTypes.h
Go to the documentation of this file.
1 
21 #pragma once
25 
26 namespace catapult {
27  namespace cache {
28  class BasicSecretLockInfoCacheDelta;
29  class BasicSecretLockInfoCacheView;
30  struct SecretLockInfoBaseSetDeltaPointers;
31  struct SecretLockInfoBaseSets;
32  class SecretLockInfoCache;
33  class SecretLockInfoCacheDelta;
34  struct SecretLockInfoCacheTypes;
35  class SecretLockInfoCacheView;
36  class SecretLockInfoPatriciaTree;
37  struct SecretLockInfoPrimarySerializer;
38  }
39 }
40 
41 namespace catapult { namespace cache {
42 
45  public:
46  static constexpr auto Name = "SecretLockInfoCache";
47 
48  public:
49  // key value types
50  using KeyType = Hash256;
52 
53  // cache types
57 
60 
61  public:
63  static const auto& GetKeyFromValue(const ValueType& lockInfo) {
64  return lockInfo.CompositeHash;
65  }
66  };
67 
69  struct SecretLockInfoCacheTypes : public LockInfoCacheTypes<SecretLockInfoCacheDescriptor> {
73  Hash256,
75 
78  };
79 }}
catapult::cache::SecretLockInfoCacheDescriptor
Describes a secret lock info cache.
Definition: SecretLockInfoCacheTypes.h:44
catapult::cache::SecretLockInfoCacheDelta
Delta on top of the secret lock info cache.
Definition: SecretLockInfoCacheDelta.h:35
catapult::cache::SecretLockInfoPatriciaTree
Definition: SecretLockInfoBaseSets.h:28
catapult::Hash256
utils::ByteArray< Hash256_Size, Hash256_tag > Hash256
Definition: src/catapult/types.h:47
catapult::cache::SecretLockInfoBaseSets
Definition: SecretLockInfoBaseSets.h:38
catapult::state::SecretLockInfo
A secret lock info.
Definition: SecretLockInfo.h:29
catapult::cache::CacheId::SecretLockInfo
catapult::cache::ReadOnlyArtifactCache
A read-only overlay on top of a cache that provides support for contains, get and isActive.
Definition: MosaicCacheTypes.h:42
ReadOnlyArtifactCache.h
catapult::cache::SecretLockInfoCache
Synchronized cache composed of secret lock info information.
Definition: SecretLockInfoCache.h:33
LockInfoCacheTypes.h
catapult::cache::BasicSecretLockInfoCacheView
Basic view on top of the secret lock info cache.
Definition: SecretLockInfoCacheView.h:29
catapult::cache::SecretLockInfoCacheView
View on top of the secret lock info cache.
Definition: SecretLockInfoCacheView.h:35
catapult::state::SecretLockInfo::CompositeHash
Hash256 CompositeHash
Composite hash.
Definition: SecretLockInfo.h:62
catapult::cache::SecretLockInfoCacheDescriptor::GetKeyFromValue
static const auto & GetKeyFromValue(const ValueType &lockInfo)
Gets the key corresponding to lockInfo.
Definition: SecretLockInfoCacheTypes.h:63
catapult::cache::SecretLockInfoCacheTypes
Secret lock info cache types.
Definition: SecretLockInfoCacheTypes.h:69
catapult::cache::LockInfoCacheTypes
Basic lock info cache types.
Definition: LockInfoCacheTypes.h:32
catapult::cache::SecretLockInfoPrimarySerializer
Primary serializer for secret lock info cache.
Definition: SecretLockInfoCacheSerializers.h:30
catapult::cache::SecretLockInfoCacheDescriptor::Name
static constexpr auto Name
Definition: SecretLockInfoCacheTypes.h:46
catapult
Definition: AddressExtractionExtension.cpp:28
SecretLockInfo.h
catapult::utils::ByteArray< Hash256_Size, Hash256_tag >
catapult::cache::SecretLockInfoBaseSetDeltaPointers
Definition: SecretLockInfoBaseSets.h:34
catapult::cache::BasicSecretLockInfoCacheDelta
Basic delta on top of the secret lock info cache.
Definition: SecretLockInfoCacheDelta.h:29