CatapultServer  v0.5.0.1 (Elephant)
LockInfoCacheTypes.h
Go to the documentation of this file.
1 
21 #pragma once
25 #include "catapult/utils/Hashers.h"
27 
28 namespace catapult { namespace cache {
29 
31  template<typename TDescriptor>
33  private:
34  using IdentifierType = typename TDescriptor::KeyType;
35 
36  // region secondary descriptors
37 
38  public:
40  public:
41  using KeyType = Height;
44 
45  public:
46  static auto GetKeyFromValue(const ValueType& heightHashes) {
47  return heightHashes.key();
48  }
49  };
50 
51  // endregion
52 
53  public:
56  };
57 }}
IdentifierGroup.h
catapult::utils::IdentifierGroup::key
const TGroupingKey & key() const
Gets the grouping key.
Definition: IdentifierGroup.h:43
catapult::Height
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
IdentifierGroupSerializer.h
catapult::cache::LockInfoCacheTypes::HeightGroupingTypesDescriptor
Definition: LockInfoCacheTypes.h:39
catapult::utils::BaseValue< uint64_t, Height_tag >
catapult::cache::LockInfoCacheTypes< HashLockInfoCacheDescriptor >::IdentifierType
typename HashLockInfoCacheDescriptor ::KeyType IdentifierType
Definition: LockInfoCacheTypes.h:34
catapult::cache::LockInfoCacheTypes::HeightGroupingTypesDescriptor::GetKeyFromValue
static auto GetKeyFromValue(const ValueType &heightHashes)
Definition: LockInfoCacheTypes.h:46
CacheDatabaseMixin.h
catapult::cache::LockInfoCacheTypes
Basic lock info cache types.
Definition: LockInfoCacheTypes.h:32
CacheDescriptorAdapters.h
catapult::cache::IdentifierGroupSerializer
Serializer for identifier group elements.
Definition: IdentifierGroupSerializer.h:30
catapult
Definition: AddressExtractionExtension.cpp:28
Hashers.h
catapult::utils::IdentifierGroup
A group of identifiers that share a common (external) attribute.
Definition: IdentifierGroup.h:28
catapult::cache::detail::UnorderedMapAdapter
Defines cache types for an unordered map based cache.
Definition: CacheDescriptorAdapters.h:35