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

Basic delta on top of the account restriction cache. More...

Inheritance diagram for catapult::cache::BasicAccountRestrictionCacheDelta:
Collaboration diagram for catapult::cache::BasicAccountRestrictionCacheDelta:

Public Types

using ReadOnlyView = AccountRestrictionCacheTypes::CacheReadOnlyType
 
- 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

 BasicAccountRestrictionCacheDelta (const AccountRestrictionCacheTypes::BaseSetDeltaPointers &restrictionSets, model::NetworkIdentifier networkIdentifier)
 Creates a delta around restrictionSets and networkIdentifier. More...
 
model::NetworkIdentifier networkIdentifier () const
 Gets the network identifier. 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::SizeMixin< TSet >
 SizeMixin (const TSet &set)
 Creates a mixin around set. More...
 
size_t size () const
 Gets the number of elements in the cache. 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::PatriciaTreeDeltaMixin< TSet, TTree >
 PatriciaTreeDeltaMixin (TSet &set, const std::shared_ptr< TTree > &pTree)
 Creates a mixin around delta set and 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...
 
void updateMerkleRoot (Height height)
 Recalculates the merkle root given the specified chain height if supported. More...
 
void setMerkleRoot (const Hash256 &merkleRoot)
 
- Public Member Functions inherited from catapult::cache::BasicInsertRemoveMixin< TSet, TCacheDescriptor >
 BasicInsertRemoveMixin (TSet &set)
 Creates a mixin around set. More...
 
void insert (const ValueType &value)
 Inserts value into the cache. More...
 
void remove (const KeyType &key)
 Removes the value identified by key from the cache. More...
 

Private Attributes

AccountRestrictionCacheTypes::PrimaryTypes::BaseSetDeltaPointerType m_pAccountRestrictionEntries
 
model::NetworkIdentifier m_networkIdentifier
 

Detailed Description

Basic delta on top of the account restriction cache.

Member Typedef Documentation

◆ ReadOnlyView

Constructor & Destructor Documentation

◆ BasicAccountRestrictionCacheDelta()

catapult::cache::BasicAccountRestrictionCacheDelta::BasicAccountRestrictionCacheDelta ( const AccountRestrictionCacheTypes::BaseSetDeltaPointers restrictionSets,
model::NetworkIdentifier  networkIdentifier 
)
inlineexplicit

Creates a delta around restrictionSets and networkIdentifier.

Member Function Documentation

◆ networkIdentifier()

model::NetworkIdentifier catapult::cache::BasicAccountRestrictionCacheDelta::networkIdentifier ( ) const
inline

Gets the network identifier.

Member Data Documentation

◆ m_networkIdentifier

model::NetworkIdentifier catapult::cache::BasicAccountRestrictionCacheDelta::m_networkIdentifier
private

◆ m_pAccountRestrictionEntries

AccountRestrictionCacheTypes::PrimaryTypes::BaseSetDeltaPointerType catapult::cache::BasicAccountRestrictionCacheDelta::m_pAccountRestrictionEntries
private

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