CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::CachePatriciaTree< TTree > Class Template Reference

A wrapper around a patricia tree used by caches. More...

Classes

class  Impl
 

Public Member Functions

 CachePatriciaTree (bool enable, CacheDatabase &database, size_t columnId)
 Creates a tree around database and columnId if enable is true. More...
 
const auto * get () const
 Gets a pointer to the underlying tree if enabled. More...
 
auto rebase ()
 Returns a delta based on the same data source as this tree. More...
 
auto rebaseDetached () const
 
void commit ()
 Commits all changes in the rebased tree. More...
 

Private Attributes

std::unique_ptr< Implm_pImpl
 

Detailed Description

template<typename TTree>
class catapult::cache::CachePatriciaTree< TTree >

A wrapper around a patricia tree used by caches.

Constructor & Destructor Documentation

◆ CachePatriciaTree()

template<typename TTree>
catapult::cache::CachePatriciaTree< TTree >::CachePatriciaTree ( bool  enable,
CacheDatabase database,
size_t  columnId 
)
inline

Creates a tree around database and columnId if enable is true.

Member Function Documentation

◆ commit()

template<typename TTree>
void catapult::cache::CachePatriciaTree< TTree >::commit ( )
inline

Commits all changes in the rebased tree.

Here is the caller graph for this function:

◆ get()

template<typename TTree>
const auto* catapult::cache::CachePatriciaTree< TTree >::get ( ) const
inline

Gets a pointer to the underlying tree if enabled.

◆ rebase()

template<typename TTree>
auto catapult::cache::CachePatriciaTree< TTree >::rebase ( )
inline

Returns a delta based on the same data source as this tree.

Here is the caller graph for this function:

◆ rebaseDetached()

template<typename TTree>
auto catapult::cache::CachePatriciaTree< TTree >::rebaseDetached ( ) const
inline

Returns a delta based on the same data source as this tree but without the ability to commit any changes to the original tree.

Here is the caller graph for this function:

Member Data Documentation

◆ m_pImpl

template<typename TTree>
std::unique_ptr<Impl> catapult::cache::CachePatriciaTree< TTree >::m_pImpl
private

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