CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::CatapultCacheDetachableDelta Class Reference
Collaboration diagram for catapult::cache::CatapultCacheDetachableDelta:

Public Member Functions

 CatapultCacheDetachableDelta (CacheHeightView &&cacheHeightView, std::vector< std::unique_ptr< DetachedSubCacheView >> &&detachedSubViews)
 Creates a detachable cache delta from a cache height view (cacheHeightView) and detachedSubViews. More...
 
 ~CatapultCacheDetachableDelta ()
 Destroys the detachable cache delta. More...
 
 CatapultCacheDetachableDelta (CatapultCacheDetachableDelta &&)
 Move constructor. More...
 
Height height () const
 Gets the cache height associated with this delta. More...
 
CatapultCacheDetachedDelta detach ()
 Detaches the detached delta from this delta. More...
 

Private Attributes

std::unique_ptr< const CacheHeightViewm_pCacheHeightView
 
CatapultCacheDetachedDelta m_detachedDelta
 

Detailed Description

Detachable delta of the catapult cache.

Note
This delta acquires a reader lock (via the cache height view) to the catapult cache that is released when the delta is destroyed.

Constructor & Destructor Documentation

◆ CatapultCacheDetachableDelta() [1/2]

catapult::cache::CatapultCacheDetachableDelta::CatapultCacheDetachableDelta ( CacheHeightView &&  cacheHeightView,
std::vector< std::unique_ptr< DetachedSubCacheView >> &&  detachedSubViews 
)

Creates a detachable cache delta from a cache height view (cacheHeightView) and detachedSubViews.

◆ ~CatapultCacheDetachableDelta()

catapult::cache::CatapultCacheDetachableDelta::~CatapultCacheDetachableDelta ( )
default

Destroys the detachable cache delta.

◆ CatapultCacheDetachableDelta() [2/2]

catapult::cache::CatapultCacheDetachableDelta::CatapultCacheDetachableDelta ( CatapultCacheDetachableDelta &&  )
default

Move constructor.

Member Function Documentation

◆ detach()

CatapultCacheDetachedDelta catapult::cache::CatapultCacheDetachableDelta::detach ( )

Detaches the detached delta from this delta.

◆ height()

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

Gets the cache height associated with this delta.

Here is the caller graph for this function:

Member Data Documentation

◆ m_detachedDelta

CatapultCacheDetachedDelta catapult::cache::CatapultCacheDetachableDelta::m_detachedDelta
private

◆ m_pCacheHeightView

std::unique_ptr<const CacheHeightView> catapult::cache::CatapultCacheDetachableDelta::m_pCacheHeightView
private

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