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

A mixin for adding contains support to a cache. More...

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

Public Member Functions

 ContainsMixin (const TSet &set)
 Creates a mixin around set. More...
 
bool contains (const KeyType &key) const
 Gets a value indicating whether or not the cache contains an element with key. More...
 

Private Types

using KeyType = typename TCacheDescriptor::KeyType
 

Private Attributes

const TSet & m_set
 

Detailed Description

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

A mixin for adding contains support to a cache.

Member Typedef Documentation

◆ KeyType

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

Constructor & Destructor Documentation

◆ ContainsMixin()

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

Creates a mixin around set.

Member Function Documentation

◆ contains()

template<typename TSet , typename TCacheDescriptor >
bool catapult::cache::ContainsMixin< TSet, TCacheDescriptor >::contains ( const KeyType key) const
inline

Gets a value indicating whether or not the cache contains an element with key.

Here is the caller graph for this function:

Member Data Documentation

◆ m_set

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

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