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

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

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

Public Member Functions

 SizeMixin (const TSet &set)
 Creates a mixin around set. More...
 
size_t size () const
 Gets the number of elements in the cache. More...
 

Private Attributes

const TSet & m_set
 

Detailed Description

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

A mixin for adding size support to a cache.

Constructor & Destructor Documentation

◆ SizeMixin()

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

Creates a mixin around set.

Member Function Documentation

◆ size()

template<typename TSet >
size_t catapult::cache::SizeMixin< TSet >::size ( ) const
inline

Gets the number of elements in the cache.

Here is the caller graph for this function:

Member Data Documentation

◆ m_set

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

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