CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
29 namespace catapult {
namespace cache {
77 std::unique_ptr<AccountStateCacheViewMixins::KeyLookupAdapter>&& pKeyLookupAdapter);
SizeMixin< TSet > Size
Definition: CacheMixinAliases.h:31
A mixin for adding iteration support to a cache.
Definition: CacheMixins.h:75
BasicAccountStateCacheView(const AccountStateCacheTypes::BaseSets &accountStateSets, const AccountStateCacheTypes::Options &options, const model::AddressSet &highValueAddresses)
Creates a view around accountStateSets, options and highValueAddresses.
Definition: AccountStateCacheView.cpp:27
PatriciaTreeMixin< typename TCacheDescriptor::PatriciaTree > PatriciaTreeView
Definition: CacheMixinAliases.h:53
uint64_t ImportanceGrouping
Importance grouping.
Definition: AccountStateCacheTypes.h:84
Decorates a view and supplies a read-only view.
Definition: ReadOnlyViewSupplier.h:28
A mixin for adding patricia tree support to a cache.
Definition: PatriciaTreeCacheMixins.h:30
std::unordered_set< Address, utils::ArrayHasher< Address > > AddressSet
Unordered set of addresses.
Definition: ContainerTypes.h:41
MosaicId HarvestingMosaicId
Mosaic id used to provide harvesting ability.
Definition: AccountStateCacheTypes.h:94
Amount minHarvesterBalance() const
Gets the minimum harvester balance.
Definition: AccountStateCacheView.cpp:65
Grouping of all basic and patricia tree cache mixins for a single set.
Definition: CacheMixinAliases.h:52
A mixin for adding const access support to a cache.
Definition: CacheMixins.h:190
Custom sub view options.
Definition: AccountStateCacheTypes.h:79
Mixins used by the account state cache view.
Definition: AccountStateCacheView.h:32
ContainsMixin< TSet, TCacheDescriptor > Contains
Definition: CacheMixinAliases.h:32
MosaicId harvestingMosaicId() const
Gets the harvesting mosaic id.
Definition: AccountStateCacheView.cpp:69
IterationMixin< TSet > Iteration
Definition: CacheMixinAliases.h:33
const AccountStateCacheTypes::Options & m_options
Definition: AccountStateCacheView.h:104
ConstAccessorMixin< TSet, TCacheDescriptor > ConstAccessor
Definition: CacheMixinAliases.h:35
model::NetworkIdentifier networkIdentifier() const
Gets the network identifier.
Definition: AccountStateCacheView.cpp:57
AddressMixins::Size Size
Definition: AccountStateCacheView.h:41
A mixin for adding contains support to a cache.
Definition: CacheMixins.h:54
const_iterator find(const KeyType &key) const
Finds the cache value identified by key.
Definition: CacheMixins.h:207
deltaset::BaseSet< TElementTraits, StorageTraits > BaseSetType
Base set type.
Definition: CacheDescriptorAdapters.h:81
A class that can be moved but not copied.
Definition: NonCopyable.h:43
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
AddressMixins::Iteration Iteration
Definition: AccountStateCacheView.h:46
Describes a key-based interface on top of an account state cache.
Definition: AccountStateCacheTypes.h:101
Definition: AccountStateCacheTypes.h:121
Definition: AccountStateBaseSets.h:47
CompareChainsOptions m_options
Definition: CompareChains.cpp:165
bool contains(const KeyType &key) const
Gets a value indicating whether or not the cache contains an element with key.
Definition: CacheMixins.h:65
const model::AddressSet & m_highValueAddresses
Definition: AccountStateCacheView.h:105
Amount MinHarvesterBalance
Definition: AccountStateCacheTypes.h:88
model::NetworkIdentifier NetworkIdentifier
Network identifier.
Definition: AccountStateCacheTypes.h:81
Definition: AddressExtractionExtension.cpp:28
Basic view on top of the account state cache.
Definition: AccountStateCacheView.h:53
A mixin for adding size support to a cache.
Definition: CacheMixins.h:36
AddressMixins::Contains ContainsAddress
Definition: AccountStateCacheView.h:42
std::unique_ptr< AccountStateCacheViewMixins::KeyLookupAdapter > m_pKeyLookupAdapter
Definition: AccountStateCacheView.h:106
A read-only overlay on top of an account cache.
Definition: ReadOnlyAccountStateCache.h:36
View on top of the account state cache.
Definition: AccountStateCacheView.h:110
AccountStateCacheView(const AccountStateCacheTypes::BaseSets &accountStateSets, const AccountStateCacheTypes::Options &options, const model::AddressSet &highValueAddresses)
Creates a view around accountStateSets, options and highValueAddresses.
Definition: AccountStateCacheView.h:113
uint64_t importanceGrouping() const
Gets the network importance grouping.
Definition: AccountStateCacheView.cpp:61
AddressMixins::ConstAccessor ConstAccessorAddress
Definition: AccountStateCacheView.h:47
Grouping of all basic cache mixins for a single set.
Definition: CacheMixinAliases.h:30
const model::AddressSet & highValueAddresses() const
Gets all high value addresses.
Definition: AccountStateCacheView.cpp:73