CatapultServer  v0.5.0.1 (Elephant)
AccountStateCacheStorage.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "AccountStateCacheTypes.h"
25 #include <vector>
26 
27 namespace catapult { namespace cache {
28 
31  : public CacheStorageFromDescriptor<AccountStateCacheDescriptor>
34  static void LoadInto(const ValueType& accountState, DestinationType& cacheDelta);
35 
37  static void Purge(const ValueType& accountState, DestinationType& cacheDelta);
38  };
39 }}
CacheStorageInclude.h
catapult::state::AccountStateSerializer
Policy for saving and loading account state data.
Definition: AccountStateSerializer.h:41
catapult::cache::AccountStateCacheStorage::LoadInto
static void LoadInto(const ValueType &accountState, DestinationType &cacheDelta)
Loads accountState into cacheDelta.
Definition: AccountStateCacheStorage.cpp:26
AccountStateCacheDelta.h
catapult::cache::CacheStorageFromDescriptor< AccountStateCacheDescriptor >::DestinationType
typename AccountStateCacheDescriptor ::CacheDeltaType DestinationType
Cache delta type.
Definition: src/catapult/cache/CacheStorageInclude.h:40
catapult::cache::CacheStorageFromDescriptor
Defines types for cache storage given a cache descriptor.
Definition: src/catapult/cache/CacheStorageInclude.h:35
catapult
Definition: AddressExtractionExtension.cpp:28
AccountStateCacheTypes.h
AccountStateCacheStorage.h
catapult::cache::AccountStateCacheStorage
Policy for saving and loading account state cache data.
Definition: AccountStateCacheStorage.h:30
catapult::cache::CacheStorageFromDescriptor< AccountStateCacheDescriptor >::ValueType
typename AccountStateCacheDescriptor ::ValueType ValueType
Cache value type.
Definition: src/catapult/cache/CacheStorageInclude.h:46
AccountStateSerializer.h
catapult::cache::AccountStateCacheStorage::Purge
static void Purge(const ValueType &accountState, DestinationType &cacheDelta)
Purges accountState from cacheDelta.
Definition: AccountStateCacheStorage.cpp:30