CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::SingleSetCacheTypesAdapter< TPrimaryTypes, IsOrderedFlag >::BaseSets Struct Reference

Wrapper around single set. More...

Inheritance diagram for catapult::cache::SingleSetCacheTypesAdapter< TPrimaryTypes, IsOrderedFlag >::BaseSets:
Collaboration diagram for catapult::cache::SingleSetCacheTypesAdapter< TPrimaryTypes, IsOrderedFlag >::BaseSets:

Public Types

using IsOrderedSet = IsOrderedFlag
 Indicates the set is ordered (used for capability detection in templates). More...
 

Public Member Functions

 BaseSets (const CacheConfiguration &config)
 Creates base sets around config. More...
 
BaseSetDeltaPointers rebase ()
 Returns a delta based on the same original elements as this set. More...
 
BaseSetDeltaPointers rebaseDetached () const
 
template<typename... TArgs>
void commit (TArgs &&... args)
 

Public Attributes

TPrimaryTypes::BaseSetType Primary
 

Static Private Attributes

static constexpr auto PruningMode = IsOrderedSet() ? FilterPruningMode::Enabled : FilterPruningMode::Disabled
 

Additional Inherited Members

- Protected Member Functions inherited from catapult::cache::CacheDatabaseMixin
 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...
 
CacheDatabasedatabase ()
 Gets the database. More...
 
void flush ()
 Flushes the database. More...
 
- Static Protected Member Functions inherited from catapult::cache::CacheDatabaseMixin
static deltaset::ConditionalContainerMode GetContainerMode (const CacheConfiguration &config)
 Gets the container mode specified by config. More...
 

Detailed Description

template<typename TPrimaryTypes, typename IsOrderedFlag = std::false_type>
struct catapult::cache::SingleSetCacheTypesAdapter< TPrimaryTypes, IsOrderedFlag >::BaseSets

Wrapper around single set.

Member Typedef Documentation

◆ IsOrderedSet

template<typename TPrimaryTypes, typename IsOrderedFlag = std::false_type>
using catapult::cache::SingleSetCacheTypesAdapter< TPrimaryTypes, IsOrderedFlag >::BaseSets::IsOrderedSet = IsOrderedFlag

Indicates the set is ordered (used for capability detection in templates).

Constructor & Destructor Documentation

◆ BaseSets()

template<typename TPrimaryTypes, typename IsOrderedFlag = std::false_type>
catapult::cache::SingleSetCacheTypesAdapter< TPrimaryTypes, IsOrderedFlag >::BaseSets::BaseSets ( const CacheConfiguration config)
inlineexplicit

Creates base sets around config.

Member Function Documentation

◆ commit()

template<typename TPrimaryTypes, typename IsOrderedFlag = std::false_type>
template<typename... TArgs>
void catapult::cache::SingleSetCacheTypesAdapter< TPrimaryTypes, IsOrderedFlag >::BaseSets::commit ( TArgs &&...  args)
inline

Commits all changes in the rebased cache. args are forwarded to the commit policy.

Here is the call graph for this function:

◆ rebase()

template<typename TPrimaryTypes, typename IsOrderedFlag = std::false_type>
BaseSetDeltaPointers catapult::cache::SingleSetCacheTypesAdapter< TPrimaryTypes, IsOrderedFlag >::BaseSets::rebase ( )
inline

Returns a delta based on the same original elements as this set.

◆ rebaseDetached()

template<typename TPrimaryTypes, typename IsOrderedFlag = std::false_type>
BaseSetDeltaPointers catapult::cache::SingleSetCacheTypesAdapter< TPrimaryTypes, IsOrderedFlag >::BaseSets::rebaseDetached ( ) const
inline

Returns a delta based on the same original elements as this set but without the ability to commit any changes to the original set.

Member Data Documentation

◆ Primary

template<typename TPrimaryTypes, typename IsOrderedFlag = std::false_type>
TPrimaryTypes::BaseSetType catapult::cache::SingleSetCacheTypesAdapter< TPrimaryTypes, IsOrderedFlag >::BaseSets::Primary

◆ PruningMode

template<typename TPrimaryTypes, typename IsOrderedFlag = std::false_type>
constexpr auto catapult::cache::SingleSetCacheTypesAdapter< TPrimaryTypes, IsOrderedFlag >::BaseSets::PruningMode = IsOrderedSet() ? FilterPruningMode::Enabled : FilterPruningMode::Disabled
staticconstexprprivate

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