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

A cache view accessor. More...

Inheritance diagram for catapult::cache::detail::CacheViewAccessor< TCacheView >:

Public Member Functions

 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

TCacheView * m_pCacheView
 

Detailed Description

template<typename TCacheView>
class catapult::cache::detail::CacheViewAccessor< TCacheView >

A cache view accessor.

Constructor & Destructor Documentation

◆ CacheViewAccessor()

template<typename TCacheView >
catapult::cache::detail::CacheViewAccessor< TCacheView >::CacheViewAccessor ( TCacheView *  pCacheView)
inlineexplicit

Creates an accessor around pCacheView;.

Member Function Documentation

◆ operator bool()

template<typename TCacheView >
catapult::cache::detail::CacheViewAccessor< TCacheView >::operator bool ( ) const
inlineexplicit

Returns true if the underlying cache view is valid.

◆ operator*() [1/2]

template<typename TCacheView >
TCacheView& catapult::cache::detail::CacheViewAccessor< TCacheView >::operator* ( )
inline

Gets a reference to the underlying cache view.

◆ operator*() [2/2]

template<typename TCacheView >
const TCacheView& catapult::cache::detail::CacheViewAccessor< TCacheView >::operator* ( ) const
inline

Gets a const reference to the underlying cache view.

◆ operator->() [1/2]

template<typename TCacheView >
TCacheView* catapult::cache::detail::CacheViewAccessor< TCacheView >::operator-> ( )
inline

Gets a pointer to the underlying cache view.

◆ operator->() [2/2]

template<typename TCacheView >
const TCacheView* catapult::cache::detail::CacheViewAccessor< TCacheView >::operator-> ( ) const
inline

Gets a const pointer to the underlying cache view.

Member Data Documentation

◆ m_pCacheView

template<typename TCacheView >
TCacheView* catapult::cache::detail::CacheViewAccessor< TCacheView >::m_pCacheView
private

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