CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::detail::UnorderedMapAdapter< TElementTraits, TDescriptor, TValueHasher > Struct Template Reference

Defines cache types for an unordered map based cache. More...

Classes

struct  Converter
 
struct  DescriptorAdapter
 
struct  StorageTraits
 

Public Types

using BaseSetType = deltaset::BaseSet< TElementTraits, StorageTraits >
 Base set type. More...
 
using BaseSetDeltaType = typename BaseSetType::DeltaType
 Base set delta type. More...
 
using BaseSetDeltaPointerType = std::shared_ptr< BaseSetDeltaType >
 Base set delta pointer type. More...
 

Private Types

using StorageMapType = CacheContainerView< DescriptorAdapter >
 
using MemoryMapType = std::unordered_map< typename TDescriptor::KeyType, typename TDescriptor::ValueType, TValueHasher >
 
using MapStorageTraits = deltaset::MapStorageTraits< deltaset::ConditionalContainer< deltaset::MapKeyTraits< MemoryMapType >, StorageMapType, MemoryMapType >, Converter, MemoryMapType >
 

Detailed Description

template<typename TElementTraits, typename TDescriptor, typename TValueHasher>
struct catapult::cache::detail::UnorderedMapAdapter< TElementTraits, TDescriptor, TValueHasher >

Defines cache types for an unordered map based cache.

Member Typedef Documentation

◆ BaseSetDeltaPointerType

template<typename TElementTraits , typename TDescriptor , typename TValueHasher >
using catapult::cache::detail::UnorderedMapAdapter< TElementTraits, TDescriptor, TValueHasher >::BaseSetDeltaPointerType = std::shared_ptr<BaseSetDeltaType>

Base set delta pointer type.

◆ BaseSetDeltaType

template<typename TElementTraits , typename TDescriptor , typename TValueHasher >
using catapult::cache::detail::UnorderedMapAdapter< TElementTraits, TDescriptor, TValueHasher >::BaseSetDeltaType = typename BaseSetType::DeltaType

Base set delta type.

◆ BaseSetType

template<typename TElementTraits , typename TDescriptor , typename TValueHasher >
using catapult::cache::detail::UnorderedMapAdapter< TElementTraits, TDescriptor, TValueHasher >::BaseSetType = deltaset::BaseSet<TElementTraits, StorageTraits>

Base set type.

◆ MapStorageTraits

template<typename TElementTraits , typename TDescriptor , typename TValueHasher >
using catapult::cache::detail::UnorderedMapAdapter< TElementTraits, TDescriptor, TValueHasher >::MapStorageTraits = deltaset::MapStorageTraits< deltaset::ConditionalContainer< deltaset::MapKeyTraits<MemoryMapType>, StorageMapType, MemoryMapType >, Converter, MemoryMapType >
private

◆ MemoryMapType

template<typename TElementTraits , typename TDescriptor , typename TValueHasher >
using catapult::cache::detail::UnorderedMapAdapter< TElementTraits, TDescriptor, TValueHasher >::MemoryMapType = std::unordered_map<typename TDescriptor::KeyType, typename TDescriptor::ValueType, TValueHasher>
private

◆ StorageMapType

template<typename TElementTraits , typename TDescriptor , typename TValueHasher >
using catapult::cache::detail::UnorderedMapAdapter< TElementTraits, TDescriptor, TValueHasher >::StorageMapType = CacheContainerView<DescriptorAdapter>
private

The documentation for this struct was generated from the following file: