CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::AccountStateCacheTypes::ComposedLookupAdapter< TSets > Class Template Reference

Public Types

using KeyType = typename SetOneType::KeyType
 
using ValueType = typename SetTwoType::ElementType
 
using FindIterator = typename TSets::FindIterator
 
using FindConstIterator = typename TSets::FindConstIterator
 

Public Member Functions

 ComposedLookupAdapter (const SetOneType &set1, SetTwoType &set2)
 
FindConstIterator find (const KeyType &key) const
 
FindIterator find (const KeyType &key)
 

Static Public Attributes

static constexpr auto Name = TSets::Name
 

Private Types

using SetOneType = typename TSets::SetOneType
 
using SetTwoType = typename TSets::SetTwoType
 

Private Attributes

const SetOneTypem_set1
 
SetTwoTypem_set2
 

Detailed Description

template<typename TSets>
class catapult::cache::AccountStateCacheTypes::ComposedLookupAdapter< TSets >

Adapter for a dual lookup.

Note
This allows use of mixins.

Member Typedef Documentation

◆ FindConstIterator

template<typename TSets >
using catapult::cache::AccountStateCacheTypes::ComposedLookupAdapter< TSets >::FindConstIterator = typename TSets::FindConstIterator

◆ FindIterator

template<typename TSets >
using catapult::cache::AccountStateCacheTypes::ComposedLookupAdapter< TSets >::FindIterator = typename TSets::FindIterator

◆ KeyType

template<typename TSets >
using catapult::cache::AccountStateCacheTypes::ComposedLookupAdapter< TSets >::KeyType = typename SetOneType::KeyType

◆ SetOneType

template<typename TSets >
using catapult::cache::AccountStateCacheTypes::ComposedLookupAdapter< TSets >::SetOneType = typename TSets::SetOneType
private

◆ SetTwoType

template<typename TSets >
using catapult::cache::AccountStateCacheTypes::ComposedLookupAdapter< TSets >::SetTwoType = typename TSets::SetTwoType
private

◆ ValueType

template<typename TSets >
using catapult::cache::AccountStateCacheTypes::ComposedLookupAdapter< TSets >::ValueType = typename SetTwoType::ElementType

Constructor & Destructor Documentation

◆ ComposedLookupAdapter()

template<typename TSets >
catapult::cache::AccountStateCacheTypes::ComposedLookupAdapter< TSets >::ComposedLookupAdapter ( const SetOneType set1,
SetTwoType set2 
)
inline

Member Function Documentation

◆ find() [1/2]

template<typename TSets >
FindIterator catapult::cache::AccountStateCacheTypes::ComposedLookupAdapter< TSets >::find ( const KeyType key)
inline

◆ find() [2/2]

template<typename TSets >
FindConstIterator catapult::cache::AccountStateCacheTypes::ComposedLookupAdapter< TSets >::find ( const KeyType key) const
inline
Here is the call graph for this function:

Member Data Documentation

◆ m_set1

template<typename TSets >
const SetOneType& catapult::cache::AccountStateCacheTypes::ComposedLookupAdapter< TSets >::m_set1
private

◆ m_set2

template<typename TSets >
SetTwoType& catapult::cache::AccountStateCacheTypes::ComposedLookupAdapter< TSets >::m_set2
private

◆ Name

template<typename TSets >
constexpr auto catapult::cache::AccountStateCacheTypes::ComposedLookupAdapter< TSets >::Name = TSets::Name
staticconstexpr

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