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

A mixin for height-based pruning. More...

Inheritance diagram for catapult::cache::HeightBasedPruningMixin< TSet, THeightGroupedSet >:

Public Member Functions

 HeightBasedPruningMixin (TSet &set, THeightGroupedSet &heightGroupedSet)
 Creates a mixin around set and heightGroupedSet. More...
 
void prune (Height height)
 Prunes the cache at height. More...
 

Private Attributes

TSet & m_set
 
THeightGroupedSet & m_heightGroupedSet
 

Detailed Description

template<typename TSet, typename THeightGroupedSet>
class catapult::cache::HeightBasedPruningMixin< TSet, THeightGroupedSet >

A mixin for height-based pruning.

Constructor & Destructor Documentation

◆ HeightBasedPruningMixin()

template<typename TSet , typename THeightGroupedSet >
catapult::cache::HeightBasedPruningMixin< TSet, THeightGroupedSet >::HeightBasedPruningMixin ( TSet &  set,
THeightGroupedSet &  heightGroupedSet 
)
inline

Creates a mixin around set and heightGroupedSet.

Member Function Documentation

◆ prune()

template<typename TSet , typename THeightGroupedSet >
void catapult::cache::HeightBasedPruningMixin< TSet, THeightGroupedSet >::prune ( Height  height)
inline

Prunes the cache at height.

Here is the call graph for this function:

Member Data Documentation

◆ m_heightGroupedSet

template<typename TSet , typename THeightGroupedSet >
THeightGroupedSet& catapult::cache::HeightBasedPruningMixin< TSet, THeightGroupedSet >::m_heightGroupedSet
private

◆ m_set

template<typename TSet , typename THeightGroupedSet >
TSet& catapult::cache::HeightBasedPruningMixin< TSet, THeightGroupedSet >::m_set
private

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