CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
23 #include <unordered_set>
26 namespace catapult {
namespace cache {
37 template<
typename TValue>
58 template<
typename TCacheDelta,
typename TValue>
95 for (
const auto& value : values)
96 pointers.insert(&value);
129 template<
typename TCache>
std::vector< TValue > Added
Added elements.
Definition: CacheChanges.h:40
Definition: CacheChanges.h:32
const TCache::CacheDeltaType & sub() const
Gets a specific sub cache delta view.
Definition: CatapultCacheDelta.h:47
CacheChanges(MemoryCacheChangesContainer &&memoryCacheChangesContainer)
Creates changes around memoryCacheChangesContainer.
Definition: CacheChanges.h:122
Delta on top of a catapult cache.
Definition: CatapultCacheDelta.h:31
Provides common view of single sub cache changes.
Definition: CacheChanges.h:59
auto sub() const
Gets a specific sub cache changes view.
Definition: CacheChanges.h:130
NamespaceId Id
Definition: RootNamespaceHistorySerializer.cpp:100
Provides common view of aggregate cache changes.
Definition: CacheChanges.h:111
CacheChanges(const CatapultCacheDelta &cacheDelta)
Creates changes around cacheDelta.
Definition: CacheChanges.h:118
Definition: CacheChanges.h:55
MemoryCacheChangesContainer m_memoryCacheChangesContainer
Definition: CacheChanges.h:141
std::vector< TValue > Copied
Copied elements.
Definition: CacheChanges.h:46
std::vector< std::unique_ptr< const MemoryCacheChanges > > MemoryCacheChangesContainer
Memory cache changes container.
Definition: CacheChanges.h:114
const TCacheDelta * m_pCacheDelta
Definition: CacheChanges.h:102
Deserialized cache changes for a single cache.
Definition: CacheChanges.h:38
A class that can be moved but not copied.
Definition: NonCopyable.h:43
std::unordered_set< const TValue * > PointerContainer
Definition: CacheChanges.h:61
static PointerContainer CollectAllPointers(const std::vector< TValue > &values)
Definition: CacheChanges.h:93
SingleCacheChangesT(const TCacheDelta &cacheDelta)
Creates changes around cacheDelta.
Definition: CacheChanges.h:65
PointerContainer addedElements() const
Gets pointers to all added elements.
Definition: CacheChanges.h:78
Definition: AddressExtractionExtension.cpp:28
virtual ~MemoryCacheChanges()=default
std::vector< TValue > Removed
Removed elements.
Definition: CacheChanges.h:43
const MemoryCacheChangesT< TValue > * m_pMemoryCacheChanges
Definition: CacheChanges.h:103
PointerContainer modifiedElements() const
Gets pointers to all modified elements.
Definition: CacheChanges.h:83
A class that can neither be copied nor moved.
Definition: NonCopyable.h:26
SingleCacheChangesT(const MemoryCacheChangesT< TValue > &memoryCacheChanges)
Creates changes around memoryCacheChanges.
Definition: CacheChanges.h:71
const CatapultCacheDelta * m_pCacheDelta
Definition: CacheChanges.h:140
PointerContainer removedElements() const
Gets pointers to all removed elements.
Definition: CacheChanges.h:88