CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::OptionalLockedCacheDelta< TCacheView > Class Template Reference

An optional cache-delta, read-lock pair. More...

Inheritance diagram for catapult::cache::OptionalLockedCacheDelta< TCacheView >:
Collaboration diagram for catapult::cache::OptionalLockedCacheDelta< TCacheView >:

Public Member Functions

 OptionalLockedCacheDelta ()
 Creates a empty view. More...
 
 OptionalLockedCacheDelta (TCacheView &cacheView, utils::SpinReaderWriterLock::ReaderLockGuard &&readLock)
 Creates a view around cacheView and pReadLock. More...
 
- Public Member Functions inherited from catapult::cache::detail::CacheViewAccessor< TCacheView >
 CacheViewAccessor (TCacheView *pCacheView)
 Creates an accessor around pCacheView;. More...
 
 operator bool () const
 Returns true if the underlying cache view is valid. More...
 
const TCacheView * operator-> () const
 Gets a const pointer to the underlying cache view. More...
 
const TCacheView & operator* () const
 Gets a const reference to the underlying cache view. More...
 
TCacheView * operator-> ()
 Gets a pointer to the underlying cache view. More...
 
TCacheView & operator* ()
 Gets a reference to the underlying cache view. More...
 

Private Attributes

boost::optional< utils::SpinReaderWriterLock::ReaderLockGuardm_readLock
 

Detailed Description

template<typename TCacheView>
class catapult::cache::OptionalLockedCacheDelta< TCacheView >

An optional cache-delta, read-lock pair.

Constructor & Destructor Documentation

◆ OptionalLockedCacheDelta() [1/2]

template<typename TCacheView >
catapult::cache::OptionalLockedCacheDelta< TCacheView >::OptionalLockedCacheDelta ( )
inline

Creates a empty view.

◆ OptionalLockedCacheDelta() [2/2]

template<typename TCacheView >
catapult::cache::OptionalLockedCacheDelta< TCacheView >::OptionalLockedCacheDelta ( TCacheView &  cacheView,
utils::SpinReaderWriterLock::ReaderLockGuard &&  readLock 
)
inline

Creates a view around cacheView and pReadLock.

Member Data Documentation

◆ m_readLock

template<typename TCacheView >
boost::optional<utils::SpinReaderWriterLock::ReaderLockGuard> catapult::cache::OptionalLockedCacheDelta< TCacheView >::m_readLock
private

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