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

A cache-delta, read-lock pair. More...

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

Public Member Functions

 LockedCacheDelta (const std::shared_ptr< detail::CacheViewReadLockPair< TCacheView >> &pPair)
 Creates a view around pPair. 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

std::shared_ptr< detail::CacheViewReadLockPair< TCacheView > > m_pPair
 

Detailed Description

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

A cache-delta, read-lock pair.

Constructor & Destructor Documentation

◆ LockedCacheDelta()

template<typename TCacheView >
catapult::cache::LockedCacheDelta< TCacheView >::LockedCacheDelta ( const std::shared_ptr< detail::CacheViewReadLockPair< TCacheView >> &  pPair)
inlineexplicit

Creates a view around pPair.

Member Data Documentation

◆ m_pPair

template<typename TCacheView >
std::shared_ptr<detail::CacheViewReadLockPair<TCacheView> > catapult::cache::LockedCacheDelta< TCacheView >::m_pPair
private

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