CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::ReadOnlyViewSupplier< TView > Class Template Reference

Decorates a view and supplies a read-only view. More...

Inheritance diagram for catapult::cache::ReadOnlyViewSupplier< TView >:
Collaboration diagram for catapult::cache::ReadOnlyViewSupplier< TView >:

Public Member Functions

template<typename... TArgs>
 ReadOnlyViewSupplier (TArgs &&... args)
 Creates a read-only view supplier around args. More...
 
 ReadOnlyViewSupplier (ReadOnlyViewSupplier &&rhs)
 
const TView::ReadOnlyView & asReadOnly () const
 Returns a read-only view of this view. More...
 

Private Attributes

TView::ReadOnlyView m_readOnlyView
 

Detailed Description

template<typename TView>
class catapult::cache::ReadOnlyViewSupplier< TView >

Decorates a view and supplies a read-only view.

Constructor & Destructor Documentation

◆ ReadOnlyViewSupplier() [1/2]

template<typename TView>
template<typename... TArgs>
catapult::cache::ReadOnlyViewSupplier< TView >::ReadOnlyViewSupplier ( TArgs &&...  args)
inline

Creates a read-only view supplier around args.

◆ ReadOnlyViewSupplier() [2/2]

template<typename TView>
catapult::cache::ReadOnlyViewSupplier< TView >::ReadOnlyViewSupplier ( ReadOnlyViewSupplier< TView > &&  rhs)
inline

Move constructs a read-only view supplier from rhs.

Note
Default move constructor will not work because pointer in m_readOnlyView needs to be updated.

Member Function Documentation

◆ asReadOnly()

template<typename TView>
const TView::ReadOnlyView& catapult::cache::ReadOnlyViewSupplier< TView >::asReadOnly ( ) const
inline

Returns a read-only view of this view.

Here is the caller graph for this function:

Member Data Documentation

◆ m_readOnlyView

template<typename TView>
TView::ReadOnlyView catapult::cache::ReadOnlyViewSupplier< TView >::m_readOnlyView
private

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