CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::ActivePredicateMixin< TSet, TCacheDescriptor > Class Template Reference

A mixin for adding active querying support to a cache. More...

Public Member Functions

 ActivePredicateMixin (const TSet &set)
 Creates a mixin around set. More...
 
bool isActive (const KeyType &key, Height height) const
 Returns true if the value specified by identifier key is active at height. More...
 

Private Types

using KeyType = typename TCacheDescriptor::KeyType
 

Private Attributes

const TSet & m_set
 

Detailed Description

template<typename TSet, typename TCacheDescriptor>
class catapult::cache::ActivePredicateMixin< TSet, TCacheDescriptor >

A mixin for adding active querying support to a cache.

Member Typedef Documentation

◆ KeyType

template<typename TSet , typename TCacheDescriptor >
using catapult::cache::ActivePredicateMixin< TSet, TCacheDescriptor >::KeyType = typename TCacheDescriptor::KeyType
private

Constructor & Destructor Documentation

◆ ActivePredicateMixin()

template<typename TSet , typename TCacheDescriptor >
catapult::cache::ActivePredicateMixin< TSet, TCacheDescriptor >::ActivePredicateMixin ( const TSet &  set)
inlineexplicit

Creates a mixin around set.

Member Function Documentation

◆ isActive()

template<typename TSet , typename TCacheDescriptor >
bool catapult::cache::ActivePredicateMixin< TSet, TCacheDescriptor >::isActive ( const KeyType key,
Height  height 
) const
inline

Returns true if the value specified by identifier key is active at height.

Member Data Documentation

◆ m_set

template<typename TSet , typename TCacheDescriptor >
const TSet& catapult::cache::ActivePredicateMixin< TSet, TCacheDescriptor >::m_set
private

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