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

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

Inheritance diagram for catapult::cache::IterationMixin< TSet >:

Classes

struct  IterableView
 An iterable view of the cache. More...
 

Public Member Functions

 IterationMixin (const TSet &set)
 Creates a mixin around set. More...
 
auto tryMakeIterableView () const
 

Private Attributes

const TSet & m_set
 

Detailed Description

template<typename TSet>
class catapult::cache::IterationMixin< TSet >

A mixin for adding iteration support to a cache.

Constructor & Destructor Documentation

◆ IterationMixin()

template<typename TSet >
catapult::cache::IterationMixin< TSet >::IterationMixin ( const TSet &  set)
inlineexplicit

Creates a mixin around set.

Member Function Documentation

◆ tryMakeIterableView()

template<typename TSet >
auto catapult::cache::IterationMixin< TSet >::tryMakeIterableView ( ) const
inline

Creates an iterable view of the cache.

Note
nullptr will be returned if the cache does not support iteration.
Here is the call graph for this function:

Member Data Documentation

◆ m_set

template<typename TSet >
const TSet& catapult::cache::IterationMixin< TSet >::m_set
private

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