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

Defines cache types for an ordered set based cache. More...

Classes

struct  DescriptorAdapter
 
struct  StorageTraits
 

Public Types

using BaseSetType = deltaset::OrderedSet< 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 ElementType = std::remove_const_t< typename TElementTraits::ElementType >
 
using StorageSetType = CacheContainerView< DescriptorAdapter >
 
using MemorySetType = std::set< ElementType >
 
using SetStorageTraits = deltaset::SetStorageTraits< deltaset::ConditionalContainer< deltaset::SetKeyTraits< MemorySetType >, StorageSetType, MemorySetType >, MemorySetType >
 

Detailed Description

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

Defines cache types for an ordered set based cache.

Member Typedef Documentation

◆ BaseSetDeltaPointerType

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

Base set delta pointer type.

◆ BaseSetDeltaType

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

Base set delta type.

◆ BaseSetType

template<typename TElementTraits , typename TDescriptor >
using catapult::cache::detail::OrderedSetAdapter< TElementTraits, TDescriptor >::BaseSetType = deltaset::OrderedSet<TElementTraits, StorageTraits>

Base set type.

◆ ElementType

template<typename TElementTraits , typename TDescriptor >
using catapult::cache::detail::OrderedSetAdapter< TElementTraits, TDescriptor >::ElementType = std::remove_const_t<typename TElementTraits::ElementType>
private

◆ MemorySetType

template<typename TElementTraits , typename TDescriptor >
using catapult::cache::detail::OrderedSetAdapter< TElementTraits, TDescriptor >::MemorySetType = std::set<ElementType>
private

◆ SetStorageTraits

template<typename TElementTraits , typename TDescriptor >
using catapult::cache::detail::OrderedSetAdapter< TElementTraits, TDescriptor >::SetStorageTraits = deltaset::SetStorageTraits< deltaset::ConditionalContainer< deltaset::SetKeyTraits<MemorySetType>, StorageSetType, MemorySetType >, MemorySetType >
private

◆ StorageSetType

template<typename TElementTraits , typename TDescriptor >
using catapult::cache::detail::OrderedSetAdapter< TElementTraits, TDescriptor >::StorageSetType = CacheContainerView<DescriptorAdapter>
private

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