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

Basic view on top of the account state cache. More...

Inheritance diagram for catapult::cache::BasicAccountStateCacheView:
Collaboration diagram for catapult::cache::BasicAccountStateCacheView:

Public Types

using ReadOnlyView = ReadOnlyAccountStateCache
 
- Public Types inherited from catapult::cache::ConstAccessorMixin< TSet, TCacheDescriptor, TValueAdapter >
using const_iterator = detail::CacheFindIterator< TCacheDescriptor, TValueAdapter, SetIteratorType, const ValueType >
 Find (const) iterator. More...
 

Public Member Functions

 BasicAccountStateCacheView (const AccountStateCacheTypes::BaseSets &accountStateSets, const AccountStateCacheTypes::Options &options, const model::AddressSet &highValueAddresses)
 Creates a view around accountStateSets, options and highValueAddresses. More...
 
model::NetworkIdentifier networkIdentifier () const
 Gets the network identifier. More...
 
uint64_t importanceGrouping () const
 Gets the network importance grouping. More...
 
Amount minHarvesterBalance () const
 Gets the minimum harvester balance. More...
 
MosaicId harvestingMosaicId () const
 Gets the harvesting mosaic id. More...
 
const model::AddressSethighValueAddresses () const
 Gets all high value addresses. 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::ContainsMixin< TSet, TCacheDescriptor >
 ContainsMixin (const TSet &set)
 Creates a mixin around set. More...
 
bool contains (const KeyType &key) const
 Gets a value indicating whether or not the cache contains an element with key. More...
 
- Public Member Functions inherited from catapult::cache::ConstAccessorMixin< TSet, TCacheDescriptor, TValueAdapter >
 ConstAccessorMixin (const TSet &set)
 Creates a mixin around set. More...
 
const_iterator find (const KeyType &key) const
 Finds the cache value identified by key. More...
 
- Public Member Functions inherited from catapult::cache::PatriciaTreeMixin< TTree >
 PatriciaTreeMixin (const TTree *pTree)
 Creates a mixin around pTree. More...
 
bool supportsMerkleRoot () const
 Returns true if merkle root is supported. More...
 
std::pair< Hash256, bool > tryGetMerkleRoot () const
 Tries to get the merkle root if supported. More...
 
std::pair< Hash256, bool > tryLookup (const typename TTree::KeyType &key, std::vector< tree::TreeNode > &nodePath) const
 Tries to find the value associated with key in the tree and stores proof of existence or not in nodePath. More...
 

Private Member Functions

 BasicAccountStateCacheView (const AccountStateCacheTypes::BaseSets &accountStateSets, const AccountStateCacheTypes::Options &options, const model::AddressSet &highValueAddresses, std::unique_ptr< AccountStateCacheViewMixins::KeyLookupAdapter > &&pKeyLookupAdapter)
 

Private Attributes

const AccountStateCacheTypes::Optionsm_options
 
const model::AddressSetm_highValueAddresses
 
std::unique_ptr< AccountStateCacheViewMixins::KeyLookupAdapterm_pKeyLookupAdapter
 

Detailed Description

Basic view on top of the account state cache.

Member Typedef Documentation

◆ ReadOnlyView

Constructor & Destructor Documentation

◆ BasicAccountStateCacheView() [1/2]

catapult::cache::BasicAccountStateCacheView::BasicAccountStateCacheView ( const AccountStateCacheTypes::BaseSets accountStateSets,
const AccountStateCacheTypes::Options options,
const model::AddressSet highValueAddresses 
)

Creates a view around accountStateSets, options and highValueAddresses.

◆ BasicAccountStateCacheView() [2/2]

catapult::cache::BasicAccountStateCacheView::BasicAccountStateCacheView ( const AccountStateCacheTypes::BaseSets accountStateSets,
const AccountStateCacheTypes::Options options,
const model::AddressSet highValueAddresses,
std::unique_ptr< AccountStateCacheViewMixins::KeyLookupAdapter > &&  pKeyLookupAdapter 
)
private

Member Function Documentation

◆ harvestingMosaicId()

MosaicId catapult::cache::BasicAccountStateCacheView::harvestingMosaicId ( ) const

Gets the harvesting mosaic id.

Here is the caller graph for this function:

◆ highValueAddresses()

const model::AddressSet & catapult::cache::BasicAccountStateCacheView::highValueAddresses ( ) const

Gets all high value addresses.

Here is the caller graph for this function:

◆ importanceGrouping()

uint64_t catapult::cache::BasicAccountStateCacheView::importanceGrouping ( ) const

Gets the network importance grouping.

Here is the caller graph for this function:

◆ minHarvesterBalance()

Amount catapult::cache::BasicAccountStateCacheView::minHarvesterBalance ( ) const

Gets the minimum harvester balance.

Here is the caller graph for this function:

◆ networkIdentifier()

model::NetworkIdentifier catapult::cache::BasicAccountStateCacheView::networkIdentifier ( ) const

Gets the network identifier.

Here is the caller graph for this function:

Member Data Documentation

◆ m_highValueAddresses

const model::AddressSet& catapult::cache::BasicAccountStateCacheView::m_highValueAddresses
private

◆ m_options

const AccountStateCacheTypes::Options& catapult::cache::BasicAccountStateCacheView::m_options
private

◆ m_pKeyLookupAdapter

std::unique_ptr<AccountStateCacheViewMixins::KeyLookupAdapter> catapult::cache::BasicAccountStateCacheView::m_pKeyLookupAdapter
private

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