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

Detached delta of the catapult cache. More...

Public Member Functions

 CatapultCacheDetachedDelta (std::vector< std::unique_ptr< DetachedSubCacheView >> &&detachedSubViews)
 Creates a detached cache delta from detachedSubViews. More...
 
 ~CatapultCacheDetachedDelta ()
 Destroys the delta. More...
 
 CatapultCacheDetachedDelta (CatapultCacheDetachedDelta &&)
 
CatapultCacheDetachedDeltaoperator= (CatapultCacheDetachedDelta &&)
 
std::unique_ptr< CatapultCacheDeltatryLock ()
 

Private Attributes

std::vector< std::unique_ptr< DetachedSubCacheView > > m_detachedSubViews
 

Detailed Description

Detached delta of the catapult cache.

Constructor & Destructor Documentation

◆ CatapultCacheDetachedDelta() [1/2]

catapult::cache::CatapultCacheDetachedDelta::CatapultCacheDetachedDelta ( std::vector< std::unique_ptr< DetachedSubCacheView >> &&  detachedSubViews)
explicit

Creates a detached cache delta from detachedSubViews.

◆ ~CatapultCacheDetachedDelta()

catapult::cache::CatapultCacheDetachedDelta::~CatapultCacheDetachedDelta ( )
default

Destroys the delta.

◆ CatapultCacheDetachedDelta() [2/2]

catapult::cache::CatapultCacheDetachedDelta::CatapultCacheDetachedDelta ( CatapultCacheDetachedDelta &&  )
default

Member Function Documentation

◆ operator=()

CatapultCacheDetachedDelta & catapult::cache::CatapultCacheDetachedDelta::operator= ( CatapultCacheDetachedDelta &&  )
default

◆ tryLock()

std::unique_ptr< CatapultCacheDelta > catapult::cache::CatapultCacheDetachedDelta::tryLock ( )

Locks the detached delta.

Note
If locking fails, nullptr is returned.

Member Data Documentation

◆ m_detachedSubViews

std::vector<std::unique_ptr<DetachedSubCacheView> > catapult::cache::CatapultCacheDetachedDelta::m_detachedSubViews
private

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