CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::ReadOnlyCatapultCache Class Reference

A read-only overlay on top of a catapult cache. More...

Public Member Functions

 ReadOnlyCatapultCache (const std::vector< const void * > &readOnlyViews)
 Creates a read-only overlay on top of readOnlyViews. More...
 
template<typename TCache >
const TCache::CacheReadOnlyType & sub () const
 Gets a specific sub cache read-only view. More...
 

Private Attributes

std::vector< const void * > m_readOnlyViews
 

Detailed Description

A read-only overlay on top of a catapult cache.

Constructor & Destructor Documentation

◆ ReadOnlyCatapultCache()

catapult::cache::ReadOnlyCatapultCache::ReadOnlyCatapultCache ( const std::vector< const void * > &  readOnlyViews)
explicit

Creates a read-only overlay on top of readOnlyViews.

Member Function Documentation

◆ sub()

template<typename TCache >
const TCache::CacheReadOnlyType& catapult::cache::ReadOnlyCatapultCache::sub ( ) const
inline

Gets a specific sub cache read-only view.

Here is the caller graph for this function:

Member Data Documentation

◆ m_readOnlyViews

std::vector<const void*> catapult::cache::ReadOnlyCatapultCache::m_readOnlyViews
private

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