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

Builder for creating a catapult cache around sub caches. More...

Public Member Functions

template<typename TStorageTraits , typename TCache >
void add (std::unique_ptr< TCache > &&pSubCache)
 Adds pSubCache to the builder with the specified storage traits. More...
 
void add (std::unique_ptr< SubCachePlugin > &&pSubCachePlugin)
 Adds pSubCachePlugin to the builder. More...
 
CatapultCache build ()
 Builds a catapult cache. More...
 

Private Attributes

std::vector< std::unique_ptr< SubCachePlugin > > m_subCaches
 

Detailed Description

Builder for creating a catapult cache around sub caches.

Member Function Documentation

◆ add() [1/2]

void catapult::cache::CatapultCacheBuilder::add ( std::unique_ptr< SubCachePlugin > &&  pSubCachePlugin)
inline

Adds pSubCachePlugin to the builder.

◆ add() [2/2]

template<typename TStorageTraits , typename TCache >
void catapult::cache::CatapultCacheBuilder::add ( std::unique_ptr< TCache > &&  pSubCache)
inline

Adds pSubCache to the builder with the specified storage traits.

Here is the caller graph for this function:

◆ build()

CatapultCache catapult::cache::CatapultCacheBuilder::build ( )
inline

Builds a catapult cache.

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

Member Data Documentation

◆ m_subCaches

std::vector<std::unique_ptr<SubCachePlugin> > catapult::cache::CatapultCacheBuilder::m_subCaches
private

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