CatapultServer  v0.5.0.1 (Elephant)
HashLockInfoCacheTypes.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "src/state/HashLockInfo.h"
25 
26 namespace catapult {
27  namespace cache {
28  class BasicHashLockInfoCacheDelta;
29  class BasicHashLockInfoCacheView;
30  struct HashLockInfoBaseSetDeltaPointers;
31  struct HashLockInfoBaseSets;
32  class HashLockInfoCache;
33  class HashLockInfoCacheDelta;
34  struct HashLockInfoCacheTypes;
35  class HashLockInfoCacheView;
36  class HashLockInfoPatriciaTree;
37  struct HashLockInfoPrimarySerializer;
38  }
39 }
40 
41 namespace catapult { namespace cache {
42 
45  public:
46  static constexpr auto Name = "HashLockInfoCache";
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.Hash;
65  }
66  };
67 
69  struct HashLockInfoCacheTypes : public LockInfoCacheTypes<HashLockInfoCacheDescriptor> {
73  Hash256,
75 
78  };
79 }}
catapult::cache::HashLockInfoBaseSetDeltaPointers
Definition: HashLockInfoBaseSets.h:34
catapult::cache::BasicHashLockInfoCacheView
Basic view on top of the hash lock info cache.
Definition: HashLockInfoCacheView.h:29
catapult::Hash256
utils::ByteArray< Hash256_Size, Hash256_tag > Hash256
Definition: src/catapult/types.h:47
catapult::cache::HashLockInfoPatriciaTree
Definition: HashLockInfoBaseSets.h:28
catapult::cache::HashLockInfoCacheDescriptor::GetKeyFromValue
static const auto & GetKeyFromValue(const ValueType &lockInfo)
Gets the key corresponding to lockInfo.
Definition: HashLockInfoCacheTypes.h:63
catapult::state::HashLockInfo
A hash lock info.
Definition: HashLockInfo.h:27
catapult::cache::BasicHashLockInfoCacheDelta
Basic delta on top of the hash lock info cache.
Definition: HashLockInfoCacheDelta.h:29
catapult::cache::HashLockInfoCache
Synchronized cache composed of hash lock info information.
Definition: HashLockInfoCache.h:33
catapult::cache::ReadOnlyArtifactCache
A read-only overlay on top of a cache that provides support for contains, get and isActive.
Definition: MosaicCacheTypes.h:42
catapult::cache::HashLockInfoCacheDelta
Delta on top of the hash lock info cache.
Definition: HashLockInfoCacheDelta.h:35
ReadOnlyArtifactCache.h
LockInfoCacheTypes.h
catapult::cache::HashLockInfoCacheDescriptor
Describes a hash lock info cache.
Definition: HashLockInfoCacheTypes.h:44
catapult::cache::CacheId::HashLockInfo
HashLockInfo.h
catapult::state::HashLockInfo::Hash
Hash256 Hash
Hash.
Definition: HashLockInfo.h:46
catapult::cache::LockInfoCacheTypes
Basic lock info cache types.
Definition: LockInfoCacheTypes.h:32
catapult::cache::HashLockInfoCacheView
View on top of the hash lock info cache.
Definition: HashLockInfoCacheView.h:35
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::cache::HashLockInfoPrimarySerializer
Primary serializer for hash lock info cache.
Definition: HashLockInfoCacheSerializers.h:30
catapult::cache::HashLockInfoCacheTypes
Hash lock info cache types.
Definition: HashLockInfoCacheTypes.h:69
catapult::utils::ByteArray< Hash256_Size, Hash256_tag >
catapult::cache::HashLockInfoCacheDescriptor::Name
static constexpr auto Name
Definition: HashLockInfoCacheTypes.h:46
catapult::cache::HashLockInfoBaseSets
Definition: HashLockInfoBaseSets.h:36