CatapultServer  v0.5.0.1 (Elephant)
MultisigCacheDelta.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "MultisigBaseSets.h"
27 
28 namespace catapult { namespace cache {
29 
32 
35  : public utils::MoveOnly
43  public:
45 
46  public:
49  : MultisigCacheDeltaMixins::Size(*multisigSets.pPrimary)
50  , MultisigCacheDeltaMixins::Contains(*multisigSets.pPrimary)
51  , MultisigCacheDeltaMixins::ConstAccessor(*multisigSets.pPrimary)
52  , MultisigCacheDeltaMixins::MutableAccessor(*multisigSets.pPrimary)
53  , MultisigCacheDeltaMixins::PatriciaTreeDelta(*multisigSets.pPrimary, multisigSets.pPatriciaTree)
54  , MultisigCacheDeltaMixins::BasicInsertRemove(*multisigSets.pPrimary)
55  , MultisigCacheDeltaMixins::DeltaElements(*multisigSets.pPrimary)
56  , m_pMultisigEntries(multisigSets.pPrimary)
57  {}
58 
59  public:
62 
63  private:
65  };
66 
68  class MultisigCacheDelta : public ReadOnlyViewSupplier<BasicMultisigCacheDelta> {
69  public:
72  : ReadOnlyViewSupplier(multisigSets)
73  {}
74  };
75 }}
catapult::cache::BasicCacheMixins::Size
SizeMixin< TSet > Size
Definition: CacheMixinAliases.h:31
catapult::cache::MultisigBaseSetDeltaPointers
Definition: MultisigBaseSets.h:45
catapult::cache::ReadOnlyViewSupplier
Decorates a view and supplies a read-only view.
Definition: ReadOnlyViewSupplier.h:28
catapult::deltaset::DeltaElementsMixin
Mixin that wraps BaseSetDelta and provides a facade on top of BaseSetDelta::deltas().
Definition: DeltaElementsMixin.h:30
ReadOnlyViewSupplier.h
catapult::cache::ReadOnlyArtifactCache
A read-only overlay on top of a cache that provides support for contains, get and isActive.
Definition: MosaicCacheTypes.h:42
catapult::cache::MultisigCacheTypes::CacheReadOnlyType
ReadOnlyArtifactCache< BasicMultisigCacheView, BasicMultisigCacheDelta, const Key &, state::MultisigEntry > CacheReadOnlyType
Definition: MultisigCacheTypes.h:74
ReadOnlyArtifactCache.h
catapult::cache::BasicCacheMixins::BasicInsertRemove
BasicInsertRemoveMixin< TSet, TCacheDescriptor > BasicInsertRemove
Definition: CacheMixinAliases.h:45
catapult::cache::PatriciaTreeCacheMixins
Grouping of all basic and patricia tree cache mixins for a single set.
Definition: CacheMixinAliases.h:52
catapult::cache::BasicMultisigCacheDelta::m_pMultisigEntries
MultisigCacheTypes::PrimaryTypes::BaseSetDeltaPointerType m_pMultisigEntries
Definition: MultisigCacheDelta.h:64
catapult::cache::BasicMultisigCacheDelta
Basic delta on top of the multisig cache.
Definition: MultisigCacheDelta.h:34
catapult::cache::BasicCacheMixins::ConstAccessor
ConstAccessorMixin< TSet, TCacheDescriptor > ConstAccessor
Definition: CacheMixinAliases.h:35
catapult::cache::ContainsMixin
A mixin for adding contains support to a cache.
Definition: CacheMixins.h:54
catapult::cache::ConstAccessorMixin::find
const_iterator find(const KeyType &key) const
Finds the cache value identified by key.
Definition: CacheMixins.h:207
catapult::cache::MutableAccessorMixin::find
iterator find(const KeyType &key)
Finds the cache value identified by key.
Definition: CacheMixins.h:239
MultisigBaseSets.h
catapult::cache::PatriciaTreeDeltaMixin
A mixin for adding patricia tree support to a delta cache.
Definition: PatriciaTreeCacheMixins.h:62
catapult::utils::MoveOnly
A class that can be moved but not copied.
Definition: NonCopyable.h:43
CacheMixinAliases.h
catapult::cache::BasicMultisigCacheDelta::BasicMultisigCacheDelta
BasicMultisigCacheDelta(const MultisigCacheTypes::BaseSetDeltaPointers &multisigSets)
Creates a delta around multisigSets.
Definition: MultisigCacheDelta.h:48
catapult::cache::MultisigCacheDelta::MultisigCacheDelta
MultisigCacheDelta(const MultisigCacheTypes::BaseSetDeltaPointers &multisigSets)
Creates a delta around multisigSets.
Definition: MultisigCacheDelta.h:71
catapult::cache::detail::UnorderedMapAdapter::BaseSetDeltaPointerType
std::shared_ptr< BaseSetDeltaType > BaseSetDeltaPointerType
Base set delta pointer type.
Definition: CacheDescriptorAdapters.h:87
catapult
Definition: AddressExtractionExtension.cpp:28
BaseSetDelta.h
catapult::cache::MultisigCacheDelta
Delta on top of the multisig cache.
Definition: MultisigCacheDelta.h:68
catapult::cache::MutableAccessorMixin
Definition: CacheMixins.h:222