CatapultServer  v0.5.0.1 (Elephant)
NamespaceCacheStorage.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "NamespaceCacheTypes.h"
25 
26 namespace catapult { namespace cache {
27 
30  : public CacheStorageFromDescriptor<NamespaceCacheDescriptor>
33  static void LoadInto(const ValueType& history, DestinationType& cacheDelta);
34 
36  static void Purge(const ValueType& history, DestinationType& cacheDelta);
37  };
38 }}
CacheStorageInclude.h
catapult::state::Namespace
A catapult namespace.
Definition: Namespace.h:30
NamespaceCacheDelta.h
catapult::state::RootNamespace::Children
std::unordered_map< NamespaceId, ChildNamespaceData, utils::BaseValueHasher< NamespaceId > > Children
Definition: RootNamespace.h:56
NamespaceCacheTypes.h
catapult::cache::NamespaceCacheStorage
Policy for saving and loading namespace cache data.
Definition: NamespaceCacheStorage.h:29
catapult::state::Namespace::Path
utils::CheckedArray< NamespaceId, Namespace_Max_Depth > Path
Definition: Namespace.h:32
catapult::state::RootNamespaceHistorySerializer
Policy for saving and loading root namespace history data.
Definition: RootNamespaceHistorySerializer.h:40
catapult::cache::NamespaceCacheStorage::Purge
static void Purge(const ValueType &history, DestinationType &cacheDelta)
Purges history from cacheDelta.
Definition: NamespaceCacheStorage.cpp:67
RootNamespaceHistorySerializer.h
catapult::cache::CacheStorageFromDescriptor< NamespaceCacheDescriptor >::DestinationType
typename NamespaceCacheDescriptor ::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
catapult::cache::CacheStorageFromDescriptor< NamespaceCacheDescriptor >::ValueType
typename NamespaceCacheDescriptor ::ValueType ValueType
Cache value type.
Definition: src/catapult/cache/CacheStorageInclude.h:46
catapult::cache::NamespaceCacheStorage::LoadInto
static void LoadInto(const ValueType &history, DestinationType &cacheDelta)
Loads history into cacheDelta.
Definition: NamespaceCacheStorage.cpp:52
NamespaceCacheStorage.h