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

Basic delta on top of the mosaic cache. More...

Inheritance diagram for catapult::cache::BasicMosaicCacheDelta:
Collaboration diagram for catapult::cache::BasicMosaicCacheDelta:

Public Types

using ReadOnlyView = MosaicCacheTypes::CacheReadOnlyType
 

Public Member Functions

 BasicMosaicCacheDelta (const MosaicCacheTypes::BaseSetDeltaPointers &mosaicSets)
 Creates a delta around mosaicSets. More...
 
void insert (const state::MosaicEntry &entry)
 Inserts the mosaic entry into the cache. More...
 
void remove (MosaicId mosaicId)
 Removes the value identified by mosaicId from the cache. 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...
 
- Public Member Functions inherited from catapult::cache::HeightBasedTouchMixin< TSet, THeightGroupedSet >
 HeightBasedTouchMixin (TSet &set, THeightGroupedSet &heightGroupedSet)
 Creates a mixin around set and heightGroupedSet. More...
 
THeightGroupedSet::ElementType::Identifiers touch (Height height)
 Touches the cache at height and returns identifiers of all deactivating elements. More...
 

Private Attributes

MosaicCacheTypes::PrimaryTypes::BaseSetDeltaPointerType m_pEntryById
 
MosaicCacheTypes::HeightGroupingTypes::BaseSetDeltaPointerType m_pMosaicIdsByExpiryHeight
 

Detailed Description

Basic delta on top of the mosaic cache.

Member Typedef Documentation

◆ ReadOnlyView

Constructor & Destructor Documentation

◆ BasicMosaicCacheDelta()

catapult::cache::BasicMosaicCacheDelta::BasicMosaicCacheDelta ( const MosaicCacheTypes::BaseSetDeltaPointers mosaicSets)
explicit

Creates a delta around mosaicSets.

Member Function Documentation

◆ insert()

void catapult::cache::BasicMosaicCacheDelta::insert ( const state::MosaicEntry entry)

Inserts the mosaic entry into the cache.

Here is the call graph for this function:

◆ remove()

void catapult::cache::BasicMosaicCacheDelta::remove ( MosaicId  mosaicId)

Removes the value identified by mosaicId from the cache.

Here is the call graph for this function:

Member Data Documentation

◆ m_pEntryById

MosaicCacheTypes::PrimaryTypes::BaseSetDeltaPointerType catapult::cache::BasicMosaicCacheDelta::m_pEntryById
private

◆ m_pMosaicIdsByExpiryHeight

MosaicCacheTypes::HeightGroupingTypes::BaseSetDeltaPointerType catapult::cache::BasicMosaicCacheDelta::m_pMosaicIdsByExpiryHeight
private

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