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

A relockable detached catapult cache. More...

Classes

class  Impl
 

Public Member Functions

 RelockableDetachedCatapultCache (const CatapultCache &catapultCache)
 Creates a relockable detached catapult cache around catapultCache. More...
 
 ~RelockableDetachedCatapultCache ()
 Destroys the relockable detached catapult cache. More...
 
Height height () const
 Gets the current cache height. More...
 
std::unique_ptr< CatapultCacheDeltagetAndTryLock ()
 
std::unique_ptr< CatapultCacheDeltarebaseAndLock ()
 Rebases and locks the (detached) catapult cache delta. More...
 

Private Attributes

std::unique_ptr< Implm_pImpl
 

Detailed Description

A relockable detached catapult cache.

Constructor & Destructor Documentation

◆ RelockableDetachedCatapultCache()

catapult::cache::RelockableDetachedCatapultCache::RelockableDetachedCatapultCache ( const CatapultCache catapultCache)
explicit

Creates a relockable detached catapult cache around catapultCache.

◆ ~RelockableDetachedCatapultCache()

catapult::cache::RelockableDetachedCatapultCache::~RelockableDetachedCatapultCache ( )
default

Destroys the relockable detached catapult cache.

Member Function Documentation

◆ getAndTryLock()

std::unique_ptr< CatapultCacheDelta > catapult::cache::RelockableDetachedCatapultCache::getAndTryLock ( )

Gets and locks the last (detached) catapult cache delta.

Note
If locking fails, nullptr is returned.
Here is the caller graph for this function:

◆ height()

Height catapult::cache::RelockableDetachedCatapultCache::height ( ) const

Gets the current cache height.

Here is the caller graph for this function:

◆ rebaseAndLock()

std::unique_ptr< CatapultCacheDelta > catapult::cache::RelockableDetachedCatapultCache::rebaseAndLock ( )

Rebases and locks the (detached) catapult cache delta.

Here is the caller graph for this function:

Member Data Documentation

◆ m_pImpl

std::unique_ptr<Impl> catapult::cache::RelockableDetachedCatapultCache::m_pImpl
private

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