CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
32 struct AccountStateBaseSetDeltaPointers;
33 struct AccountStateBaseSets;
34 class AccountStateCache;
35 class AccountStateCacheDelta;
36 class AccountStateCacheView;
37 class AccountStatePatriciaTree;
38 struct AccountStatePrimarySerializer;
39 class BasicAccountStateCacheDelta;
40 class BasicAccountStateCacheView;
41 struct KeyAddressPairSerializer;
42 class ReadOnlyAccountStateCache;
46 namespace catapult {
namespace cache {
51 static constexpr
auto Name =
"AccountStateCache:Address";
120 template<
typename TSets>
145 auto setOneIter =
m_set1.find(key);
146 const auto* pPair = setOneIter.get();
151 auto setOneIter =
m_set1.find(key);
152 const auto* pPair = setOneIter.get();
170 static constexpr
auto Name =
"AccountStateCache:Key";
180 static constexpr
auto Name =
"AccountStateCache:Key";
ComposedLookupAdapter(const SetOneType &set1, SetTwoType &set2)
Definition: AccountStateCacheTypes.h:134
static constexpr auto Name
Definition: AccountStateCacheTypes.h:180
std::pair< Key, Address > ValueType
Definition: AccountStateCacheTypes.h:104
uint64_t ImportanceGrouping
Importance grouping.
Definition: AccountStateCacheTypes.h:84
FindIterator find(const KeyType &key)
Definition: AccountStateCacheTypes.h:150
static constexpr auto Name
Definition: AccountStateCacheTypes.h:51
Account state data.
Definition: AccountState.h:44
SetTwoType::FindConstIterator FindConstIterator
Definition: AccountStateCacheTypes.h:186
typename BaseSetType::DeltaType BaseSetDeltaType
Base set delta type.
Definition: CacheDescriptorAdapters.h:84
AccountState cache types.
Definition: AccountStateCacheTypes.h:74
constexpr const T & as_const(T &ref)
Coerces a reference (ref) to a const reference.
Definition: Casting.h:31
Primary serializer for account state cache.
Definition: AccountStateCacheSerializers.h:29
typename TSets::SetOneType SetOneType
Definition: AccountStateCacheTypes.h:126
MosaicId HarvestingMosaicId
Mosaic id used to provide harvesting ability.
Definition: AccountStateCacheTypes.h:94
typename SetTwoType::ElementType ValueType
Definition: AccountStateCacheTypes.h:131
Definition: AccountStateBaseSets.h:41
const SetOneType & m_set1
Definition: AccountStateCacheTypes.h:157
const KeyLookupMapTypes::BaseSetDeltaType SetOneType
Definition: AccountStateCacheTypes.h:182
Definition: AccountStateCacheTypes.h:169
Custom sub view options.
Definition: AccountStateCacheTypes.h:79
catapult::Address Address
Address of an account.
Definition: AccountState.h:58
typename TSets::FindConstIterator FindConstIterator
Definition: AccountStateCacheTypes.h:141
SetTwoType & m_set2
Definition: AccountStateCacheTypes.h:158
Describes an account state cache.
Definition: AccountStateCacheTypes.h:49
typename SetOneType::KeyType KeyType
Definition: AccountStateCacheTypes.h:130
Definition: AccountStateCacheTypes.h:179
typename TSets::SetTwoType SetTwoType
Definition: AccountStateCacheTypes.h:127
Definition: BaseSetFindIterator.h:30
Delta on top of the account state cache.
Definition: AccountStateCacheDelta.h:179
static constexpr auto Name
Definition: AccountStateCacheTypes.h:170
deltaset::BaseSet< TElementTraits, StorageTraits > BaseSetType
Base set type.
Definition: CacheDescriptorAdapters.h:81
typename TSets::FindIterator FindIterator
Definition: AccountStateCacheTypes.h:140
SetTwoType::FindIterator FindIterator
Definition: AccountStateCacheTypes.h:185
static constexpr auto Name
Definition: PtSynchronizer.cpp:31
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
Synchronized cache composed of stateful account information.
Definition: AccountStateCache.h:72
Serializer for key address lookup sub cache.
Definition: AccountStateCacheSerializers.h:38
MosaicId CurrencyMosaicId
Mosaic id used as primary chain currency.
Definition: AccountStateCacheTypes.h:91
PrimaryTypes::BaseSetDeltaType SetTwoType
Definition: AccountStateCacheTypes.h:183
Definition: AccountStateBaseSets.h:35
BaseSetFindIterator< FindTraits, TSetTraits > FindConstIterator
Definition: BaseSet.h:60
Describes a key-based interface on top of an account state cache.
Definition: AccountStateCacheTypes.h:101
Definition: AccountStateCacheTypes.h:121
Definition: AccountStateBaseSets.h:47
Amount MinHarvesterBalance
Definition: AccountStateCacheTypes.h:88
model::NetworkIdentifier NetworkIdentifier
Network identifier.
Definition: AccountStateCacheTypes.h:81
Definition: AddressExtractionExtension.cpp:28
FindConstIterator find(const KeyType &key) const
Definition: AccountStateCacheTypes.h:144
static auto GetKeyFromValue(const ValueType &pair)
Definition: AccountStateCacheTypes.h:108
A read-only overlay on top of an account cache.
Definition: ReadOnlyAccountStateCache.h:36
static constexpr auto Name
Definition: AccountStateCacheTypes.h:123
View on top of the account state cache.
Definition: AccountStateCacheView.h:110
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
static auto GetKeyFromValue(const ValueType &accountState)
Gets the key corresponding to accountState.
Definition: AccountStateCacheTypes.h:68
Defines cache types for an unordered map based cache.
Definition: CacheDescriptorAdapters.h:35