CatapultServer  v0.5.0.1 (Elephant)
catapult::validators::ActiveMosaicView Class Reference

A view on top of a catapult cache cache for retrieving active mosaics. More...

Collaboration diagram for catapult::validators::ActiveMosaicView:

Public Types

using FindIterator = cache::MosaicCacheTypes::CacheReadOnlyType::ReadOnlyFindIterator< cache::MosaicCacheView::const_iterator, cache::MosaicCacheDelta::const_iterator >
 Iterator type returned by tryGet. More...
 

Public Member Functions

 ActiveMosaicView (const cache::ReadOnlyCatapultCache &cache)
 Creates a view around cache. More...
 
validators::ValidationResult tryGet (MosaicId id, Height height, FindIterator &iter) const
 Tries to get an entry iterator (iter) for an active mosaic with id at height. More...
 
validators::ValidationResult tryGet (MosaicId id, Height height, const Key &owner, FindIterator &iter) const
 Tries to get an entry iterator (iter) for an active mosaic with id at height given its purported owner. More...
 

Private Attributes

const cache::ReadOnlyCatapultCachem_cache
 

Detailed Description

A view on top of a catapult cache cache for retrieving active mosaics.

Member Typedef Documentation

◆ FindIterator

using catapult::validators::ActiveMosaicView::FindIterator = cache::MosaicCacheTypes::CacheReadOnlyType::ReadOnlyFindIterator< cache::MosaicCacheView::const_iterator, cache::MosaicCacheDelta::const_iterator >

Iterator type returned by tryGet.

Constructor & Destructor Documentation

◆ ActiveMosaicView()

catapult::validators::ActiveMosaicView::ActiveMosaicView ( const cache::ReadOnlyCatapultCache cache)
explicit

Creates a view around cache.

Member Function Documentation

◆ tryGet() [1/2]

validators::ValidationResult catapult::validators::ActiveMosaicView::tryGet ( MosaicId  id,
Height  height,
const Key owner,
FindIterator iter 
) const

Tries to get an entry iterator (iter) for an active mosaic with id at height given its purported owner.

Here is the call graph for this function:

◆ tryGet() [2/2]

validators::ValidationResult catapult::validators::ActiveMosaicView::tryGet ( MosaicId  id,
Height  height,
FindIterator iter 
) const

Tries to get an entry iterator (iter) for an active mosaic with id at height.

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

Member Data Documentation

◆ m_cache

const cache::ReadOnlyCatapultCache& catapult::validators::ActiveMosaicView::m_cache
private

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