CatapultServer  v0.5.0.1 (Elephant)
AccountStateCacheUtils.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "catapult/functions.h"
23 #include "catapult/types.h"
24 
25 namespace catapult {
26  namespace cache { class AccountStateCacheDelta; }
27  namespace state { struct AccountState; }
28 }
29 
30 namespace catapult { namespace cache {
31 
33  void ProcessForwardedAccountState(AccountStateCacheDelta& cache, const Key& publicKey, const consumer<state::AccountState&>& action);
34 }}
catapult::state::AccountType::Remote
Account is a remote harvester account that is linked to a balance-holding account.
functions.h
AccountStateCacheDelta.h
catapult::cache::ConstAccessorMixin::find
const_iterator find(const KeyType &key) const
Finds the cache value identified by key.
Definition: CacheMixins.h:207
catapult::cache::AccountStateCacheDelta
Delta on top of the account state cache.
Definition: AccountStateCacheDelta.h:179
catapult::action
std::function< void()> action
An action function.
Definition: functions.h:27
catapult::cache::CacheId::AccountState
catapult::state::RequireLinkedRemoteAndMainAccounts
void RequireLinkedRemoteAndMainAccounts(const AccountState &remoteAccountState, const AccountState &mainAccountState)
Requires that remoteAccountState and mainAccountState state are linked.
Definition: AccountState.cpp:52
catapult::cache::ProcessForwardedAccountState
void ProcessForwardedAccountState(AccountStateCacheDelta &cache, const Key &publicKey, const consumer< state::AccountState & > &action)
Forwards account state or linked account state found in cache associated with publicKey to action.
Definition: AccountStateCacheUtils.cpp:26
types.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::utils::ByteArray< Key_Size, Key_tag >
catapult::cache::detail::CacheFindIterator::get
TValue & get() const
Definition: CacheMixins.h:159
catapult::consumer
std::function< void(TArgs...)> consumer
A consumer function.
Definition: functions.h:35
AccountStateCacheUtils.h
catapult::Key
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41