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

Provides common view of aggregate cache changes. More...

Inheritance diagram for catapult::cache::CacheChanges:
Collaboration diagram for catapult::cache::CacheChanges:

Public Types

using MemoryCacheChangesContainer = std::vector< std::unique_ptr< const MemoryCacheChanges > >
 Memory cache changes container. More...
 

Public Member Functions

 CacheChanges (const CatapultCacheDelta &cacheDelta)
 Creates changes around cacheDelta. More...
 
 CacheChanges (MemoryCacheChangesContainer &&memoryCacheChangesContainer)
 Creates changes around memoryCacheChangesContainer. More...
 
template<typename TCache >
auto sub () const
 Gets a specific sub cache changes view. More...
 
- Public Member Functions inherited from catapult::utils::MoveOnly
constexpr MoveOnly ()=default
 Default constructor. More...
 
 ~MoveOnly ()=default
 Default destructor. More...
 
 MoveOnly (const NonCopyable &)=delete
 Disabled copy constructor. More...
 
 MoveOnly (MoveOnly &&)=default
 Default move constructor. More...
 
MoveOnlyoperator= (const MoveOnly &)=delete
 Disabled assignment operator. More...
 
MoveOnlyoperator= (MoveOnly &&)=default
 Default move assignment operator. More...
 

Private Attributes

const CatapultCacheDeltam_pCacheDelta
 
MemoryCacheChangesContainer m_memoryCacheChangesContainer
 

Detailed Description

Provides common view of aggregate cache changes.

Member Typedef Documentation

◆ MemoryCacheChangesContainer

Memory cache changes container.

Constructor & Destructor Documentation

◆ CacheChanges() [1/2]

catapult::cache::CacheChanges::CacheChanges ( const CatapultCacheDelta cacheDelta)
inlineexplicit

Creates changes around cacheDelta.

◆ CacheChanges() [2/2]

catapult::cache::CacheChanges::CacheChanges ( MemoryCacheChangesContainer &&  memoryCacheChangesContainer)
inlineexplicit

Creates changes around memoryCacheChangesContainer.

Member Function Documentation

◆ sub()

template<typename TCache >
auto catapult::cache::CacheChanges::sub ( ) const
inline

Gets a specific sub cache changes view.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_memoryCacheChangesContainer

MemoryCacheChangesContainer catapult::cache::CacheChanges::m_memoryCacheChangesContainer
private

◆ m_pCacheDelta

const CatapultCacheDelta* catapult::cache::CacheChanges::m_pCacheDelta
private

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