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

Public Types

using KeyType = typename TDescriptor::KeyType
 
using ValueType = typename TDescriptor::ValueType
 
using StorageType = std::pair< const KeyType, ValueType >
 
using Serializer = typename TDescriptor::Serializer
 

Static Public Member Functions

static constexpr auto & ToKey (const StorageType &element)
 
static constexpr auto & ToValue (const StorageType &element)
 
static auto ToStorage (const ValueType &value)
 

Static Public Attributes

static constexpr auto GetKeyFromValue = TDescriptor::GetKeyFromValue
 

Member Typedef Documentation

◆ KeyType

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

◆ Serializer

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

◆ StorageType

template<typename TElementTraits , typename TDescriptor , typename TValueHasher >
using catapult::cache::detail::UnorderedMapAdapter< TElementTraits, TDescriptor, TValueHasher >::DescriptorAdapter::StorageType = std::pair<const KeyType, ValueType>

◆ ValueType

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

Member Function Documentation

◆ ToKey()

template<typename TElementTraits , typename TDescriptor , typename TValueHasher >
static constexpr auto& catapult::cache::detail::UnorderedMapAdapter< TElementTraits, TDescriptor, TValueHasher >::DescriptorAdapter::ToKey ( const StorageType element)
inlinestaticconstexpr

◆ ToStorage()

template<typename TElementTraits , typename TDescriptor , typename TValueHasher >
static auto catapult::cache::detail::UnorderedMapAdapter< TElementTraits, TDescriptor, TValueHasher >::DescriptorAdapter::ToStorage ( const ValueType value)
inlinestatic

◆ ToValue()

template<typename TElementTraits , typename TDescriptor , typename TValueHasher >
static constexpr auto& catapult::cache::detail::UnorderedMapAdapter< TElementTraits, TDescriptor, TValueHasher >::DescriptorAdapter::ToValue ( const StorageType element)
inlinestaticconstexpr

Member Data Documentation

◆ GetKeyFromValue

template<typename TElementTraits , typename TDescriptor , typename TValueHasher >
constexpr auto catapult::cache::detail::UnorderedMapAdapter< TElementTraits, TDescriptor, TValueHasher >::DescriptorAdapter::GetKeyFromValue = TDescriptor::GetKeyFromValue
staticconstexpr

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