CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter< TPrimaryTypes, TPatriciaTree >::BaseSets< TBaseSetDeltaPointers > Struct Template Reference

Wrapper around single set and patricia tree. More...

Inheritance diagram for catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter< TPrimaryTypes, TPatriciaTree >::BaseSets< TBaseSetDeltaPointers >:
Collaboration diagram for catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter< TPrimaryTypes, TPatriciaTree >::BaseSets< TBaseSetDeltaPointers >:

Public Types

using IsOrderedSet = std::false_type
 Indicates the set is not ordered. More...
 

Public Member Functions

 BaseSets (const CacheConfiguration &config)
 Creates base sets around config. More...
 
TBaseSetDeltaPointers rebase ()
 Returns a delta based on the same original elements as this set. More...
 
TBaseSetDeltaPointers rebaseDetached () const
 
void commit ()
 Commits all changes in the rebased cache. More...
 

Public Attributes

TPrimaryTypes::BaseSetType Primary
 
CachePatriciaTree< TPatriciaTree > PatriciaTree
 

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...
 
CacheDatabase & database ()
 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 TPatriciaTree>
template<typename TBaseSetDeltaPointers>
struct catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter< TPrimaryTypes, TPatriciaTree >::BaseSets< TBaseSetDeltaPointers >

Wrapper around single set and patricia tree.

Member Typedef Documentation

◆ IsOrderedSet

template<typename TPrimaryTypes , typename TPatriciaTree >
template<typename TBaseSetDeltaPointers>
using catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter< TPrimaryTypes, TPatriciaTree >::BaseSets< TBaseSetDeltaPointers >::IsOrderedSet = std::false_type

Indicates the set is not ordered.

Constructor & Destructor Documentation

◆ BaseSets()

template<typename TPrimaryTypes , typename TPatriciaTree >
template<typename TBaseSetDeltaPointers>
catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter< TPrimaryTypes, TPatriciaTree >::BaseSets< TBaseSetDeltaPointers >::BaseSets ( const CacheConfiguration &  config)
inlineexplicit

Creates base sets around config.

Member Function Documentation

◆ commit()

template<typename TPrimaryTypes , typename TPatriciaTree >
template<typename TBaseSetDeltaPointers>
void catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter< TPrimaryTypes, TPatriciaTree >::BaseSets< TBaseSetDeltaPointers >::commit ( )
inline

Commits all changes in the rebased cache.

◆ rebase()

template<typename TPrimaryTypes , typename TPatriciaTree >
template<typename TBaseSetDeltaPointers>
TBaseSetDeltaPointers catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter< TPrimaryTypes, TPatriciaTree >::BaseSets< TBaseSetDeltaPointers >::rebase ( )
inline

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

◆ rebaseDetached()

template<typename TPrimaryTypes , typename TPatriciaTree >
template<typename TBaseSetDeltaPointers>
TBaseSetDeltaPointers catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter< TPrimaryTypes, TPatriciaTree >::BaseSets< TBaseSetDeltaPointers >::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

◆ PatriciaTree

template<typename TPrimaryTypes , typename TPatriciaTree >
template<typename TBaseSetDeltaPointers>
CachePatriciaTree<TPatriciaTree> catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter< TPrimaryTypes, TPatriciaTree >::BaseSets< TBaseSetDeltaPointers >::PatriciaTree

◆ Primary

template<typename TPrimaryTypes , typename TPatriciaTree >
template<typename TBaseSetDeltaPointers>
TPrimaryTypes::BaseSetType catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter< TPrimaryTypes, TPatriciaTree >::BaseSets< TBaseSetDeltaPointers >::Primary

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