CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >::DetachedSubCacheViewAdapter< TLockableCacheDelta > Class Template Reference
Inheritance diagram for catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >::DetachedSubCacheViewAdapter< TLockableCacheDelta >:
Collaboration diagram for catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >::DetachedSubCacheViewAdapter< TLockableCacheDelta >:

Public Member Functions

 DetachedSubCacheViewAdapter (TLockableCacheDelta &&lockableCacheDelta, const SubCacheViewIdentifier &id)
 
std::unique_ptr< SubCacheViewtryLock ()
 
- Public Member Functions inherited from catapult::cache::DetachedSubCacheView
virtual ~DetachedSubCacheView ()=default
 

Private Attributes

TLockableCacheDelta m_lockableCacheDelta
 
SubCacheViewIdentifier m_id
 

Constructor & Destructor Documentation

◆ DetachedSubCacheViewAdapter()

template<typename TCache, typename TStorageTraits>
template<typename TLockableCacheDelta >
catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >::DetachedSubCacheViewAdapter< TLockableCacheDelta >::DetachedSubCacheViewAdapter ( TLockableCacheDelta &&  lockableCacheDelta,
const SubCacheViewIdentifier id 
)
inlineexplicit

Member Function Documentation

◆ tryLock()

template<typename TCache, typename TStorageTraits>
template<typename TLockableCacheDelta >
std::unique_ptr<SubCacheView> catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >::DetachedSubCacheViewAdapter< TLockableCacheDelta >::tryLock ( )
inlinevirtual

Locks the cache delta.

Note
Returns nullptr if the detached delta is no longer valid.

Implements catapult::cache::DetachedSubCacheView.

Member Data Documentation

◆ m_id

template<typename TCache, typename TStorageTraits>
template<typename TLockableCacheDelta >
SubCacheViewIdentifier catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >::DetachedSubCacheViewAdapter< TLockableCacheDelta >::m_id
private

◆ m_lockableCacheDelta

template<typename TCache, typename TStorageTraits>
template<typename TLockableCacheDelta >
TLockableCacheDelta catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >::DetachedSubCacheViewAdapter< TLockableCacheDelta >::m_lockableCacheDelta
private

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