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

A mixin for calculating the deep size of namespaces. More...

Inheritance diagram for catapult::cache::NamespaceDeepSizeMixin< TSet >:
Collaboration diagram for catapult::cache::NamespaceDeepSizeMixin< TSet >:

Public Member Functions

 NamespaceDeepSizeMixin (const NamespaceSizes &sizes)
 Creates a mixin around sizes. More...
 
size_t activeSize () const
 Gets the number of unique active namespaces in the cache. More...
 
size_t deepSize () const
 Gets the total number of namespaces in the cache (including versions). More...
 

Protected Member Functions

void incrementActiveSize (size_t delta=1)
 Increments the active size by delta. More...
 
void decrementActiveSize (size_t delta=1)
 Decrements the active size by delta. More...
 
void incrementDeepSize (size_t delta=1)
 Increments the deep size by delta. More...
 
void decrementDeepSize (size_t delta=1)
 Decrements the deep size by delta. More...
 

Private Attributes

NamespaceSizes m_sizes
 

Detailed Description

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

A mixin for calculating the deep size of namespaces.

Constructor & Destructor Documentation

◆ NamespaceDeepSizeMixin()

template<typename TSet >
catapult::cache::NamespaceDeepSizeMixin< TSet >::NamespaceDeepSizeMixin ( const NamespaceSizes sizes)
inlineexplicit

Creates a mixin around sizes.

Member Function Documentation

◆ activeSize()

template<typename TSet >
size_t catapult::cache::NamespaceDeepSizeMixin< TSet >::activeSize ( ) const
inline

Gets the number of unique active namespaces in the cache.

◆ decrementActiveSize()

template<typename TSet >
void catapult::cache::NamespaceDeepSizeMixin< TSet >::decrementActiveSize ( size_t  delta = 1)
inlineprotected

Decrements the active size by delta.

Here is the caller graph for this function:

◆ decrementDeepSize()

template<typename TSet >
void catapult::cache::NamespaceDeepSizeMixin< TSet >::decrementDeepSize ( size_t  delta = 1)
inlineprotected

Decrements the deep size by delta.

Here is the caller graph for this function:

◆ deepSize()

template<typename TSet >
size_t catapult::cache::NamespaceDeepSizeMixin< TSet >::deepSize ( ) const
inline

Gets the total number of namespaces in the cache (including versions).

◆ incrementActiveSize()

template<typename TSet >
void catapult::cache::NamespaceDeepSizeMixin< TSet >::incrementActiveSize ( size_t  delta = 1)
inlineprotected

Increments the active size by delta.

Here is the caller graph for this function:

◆ incrementDeepSize()

template<typename TSet >
void catapult::cache::NamespaceDeepSizeMixin< TSet >::incrementDeepSize ( size_t  delta = 1)
inlineprotected

Increments the deep size by delta.

Here is the caller graph for this function:

Member Data Documentation

◆ m_sizes

template<typename TSet >
NamespaceSizes catapult::cache::NamespaceDeepSizeMixin< TSet >::m_sizes
private

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