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

A mixin for adding basic insert and remove support to a cache. More...

Inheritance diagram for catapult::cache::BasicInsertRemoveMixin< TSet, TCacheDescriptor >:

Public Member Functions

 BasicInsertRemoveMixin (TSet &set)
 Creates a mixin around set. More...
 
void insert (const ValueType &value)
 Inserts value into the cache. More...
 
void remove (const KeyType &key)
 Removes the value identified by key from the cache. More...
 

Private Types

using KeyType = typename TCacheDescriptor::KeyType
 
using ValueType = typename TCacheDescriptor::ValueType
 

Private Attributes

TSet & m_set
 

Detailed Description

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

A mixin for adding basic insert and remove support to a cache.

Member Typedef Documentation

◆ KeyType

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

◆ ValueType

template<typename TSet , typename TCacheDescriptor >
using catapult::cache::BasicInsertRemoveMixin< TSet, TCacheDescriptor >::ValueType = typename TCacheDescriptor::ValueType
private

Constructor & Destructor Documentation

◆ BasicInsertRemoveMixin()

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

Creates a mixin around set.

Member Function Documentation

◆ insert()

template<typename TSet , typename TCacheDescriptor >
void catapult::cache::BasicInsertRemoveMixin< TSet, TCacheDescriptor >::insert ( const ValueType value)
inline

Inserts value into the cache.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remove()

template<typename TSet , typename TCacheDescriptor >
void catapult::cache::BasicInsertRemoveMixin< TSet, TCacheDescriptor >::remove ( const KeyType key)
inline

Removes the value identified by key from the cache.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_set

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

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