CatapultServer
v0.5.0.1 (Elephant)
|
A mixin for calculating the deep size of namespaces. More...
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 |
A mixin for calculating the deep size of namespaces.
|
inlineexplicit |
Creates a mixin around sizes.
|
inline |
Gets the number of unique active namespaces in the cache.
|
inlineprotected |
Decrements the active size by delta.
|
inlineprotected |
Decrements the deep size by delta.
|
inline |
Gets the total number of namespaces in the cache (including versions).
|
inlineprotected |
Increments the active size by delta.
|
inlineprotected |
Increments the deep size by delta.
|
private |