CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::CacheDatabaseMixin Class Reference

Mixin that owns a cache database. More...

Inheritance diagram for catapult::cache::CacheDatabaseMixin:

Protected Member Functions

 CacheDatabaseMixin (const CacheConfiguration &config, const std::vector< std::string > &columnFamilyNames, FilterPruningMode pruningMode=FilterPruningMode::Disabled)
 Creates a mixin around config and columnFamilyNames with optional pruningMode. More...
 
bool hasPatriciaTreeSupport () const
 Returns true if patricia tree support is enabled. More...
 
CacheDatabase & database ()
 Gets the database. More...
 
void flush ()
 Flushes the database. More...
 

Static Protected Member Functions

static deltaset::ConditionalContainerMode GetContainerMode (const CacheConfiguration &config)
 Gets the container mode specified by config. More...
 

Static Private Member Functions

static std::vector< std::string > GetAdjustedColumnFamilyNames (const CacheConfiguration &config, const std::vector< std::string > &columnFamilyNames)
 

Private Attributes

std::unique_ptr< CacheDatabase > m_pDatabase
 
const deltaset::ConditionalContainerMode m_containerMode
 
const bool m_hasPatriciaTreeSupport
 

Detailed Description

Mixin that owns a cache database.

Constructor & Destructor Documentation

◆ CacheDatabaseMixin()

catapult::cache::CacheDatabaseMixin::CacheDatabaseMixin ( const CacheConfiguration &  config,
const std::vector< std::string > &  columnFamilyNames,
FilterPruningMode  pruningMode = FilterPruningMode::Disabled 
)
inlineprotected

Creates a mixin around config and columnFamilyNames with optional pruningMode.

Member Function Documentation

◆ database()

CacheDatabase& catapult::cache::CacheDatabaseMixin::database ( )
inlineprotected

Gets the database.

Here is the caller graph for this function:

◆ flush()

void catapult::cache::CacheDatabaseMixin::flush ( )
inlineprotected

Flushes the database.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAdjustedColumnFamilyNames()

static std::vector<std::string> catapult::cache::CacheDatabaseMixin::GetAdjustedColumnFamilyNames ( const CacheConfiguration &  config,
const std::vector< std::string > &  columnFamilyNames 
)
inlinestaticprivate

◆ GetContainerMode()

static deltaset::ConditionalContainerMode catapult::cache::CacheDatabaseMixin::GetContainerMode ( const CacheConfiguration &  config)
inlinestaticprotected

Gets the container mode specified by config.

◆ hasPatriciaTreeSupport()

bool catapult::cache::CacheDatabaseMixin::hasPatriciaTreeSupport ( ) const
inlineprotected

Returns true if patricia tree support is enabled.

Member Data Documentation

◆ m_containerMode

const deltaset::ConditionalContainerMode catapult::cache::CacheDatabaseMixin::m_containerMode
private

◆ m_hasPatriciaTreeSupport

const bool catapult::cache::CacheDatabaseMixin::m_hasPatriciaTreeSupport
private

◆ m_pDatabase

std::unique_ptr<CacheDatabase> catapult::cache::CacheDatabaseMixin::m_pDatabase
private

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