CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
28 namespace catapult {
namespace cache {
49 const BlockDifficultyCacheTypes::BaseSetDeltaPointers& difficultyInfoSets,
97 const BlockDifficultyCacheTypes::BaseSetDeltaPointers& difficultyInfoSets,
typename BaseSetType::DeltaType BaseSetDeltaType
Base set delta type.
Definition: CacheDescriptorAdapters.h:137
BasicCacheMixins< BlockDifficultyCacheTypes::PrimaryTypes::BaseSetDeltaType, BlockDifficultyCacheDescriptor > BlockDifficultyCacheDeltaMixins
Mixins used by the block difficulty cache delta.
Definition: BlockDifficultyCacheDelta.h:33
Height m_startHeight
Definition: BlockDifficultyCacheDelta.h:88
Decorates a view and supplies a read-only view.
Definition: ReadOnlyViewSupplier.h:28
ReadOnlySimpleCache< BasicBlockDifficultyCacheView, BasicBlockDifficultyCacheDelta, state::BlockDifficultyInfo > CacheReadOnlyType
Definition: BlockDifficultyCacheTypes.h:67
Mixin that wraps BaseSetDelta and provides a facade on top of BaseSetDelta::deltas().
Definition: DeltaElementsMixin.h:30
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
BasicBlockDifficultyCacheDelta(const BlockDifficultyCacheTypes::BaseSetDeltaPointers &difficultyInfoSets, const BlockDifficultyCacheTypes::Options &options)
Creates a delta around difficultyInfoSets and options.
Definition: BlockDifficultyCacheDelta.cpp:27
Describes a block difficulty cache.
Definition: BlockDifficultyCacheTypes.h:42
BlockDifficultyCacheTypes::PrimaryTypes::BaseSetDeltaPointerType m_pOrderedDelta
Definition: BlockDifficultyCacheDelta.h:86
Definition: BlockDifficultyInfo.h:28
An iterable view of the cache.
Definition: CacheMixins.h:78
constexpr ValueType unwrap() const
Unwraps this value and returns the underlying raw value.
Definition: BaseValue.h:53
size_t size() const
Gets the number of elements in the cache.
Definition: CacheMixins.h:44
A read-only overlay on top of a cache that provides support for contains.
Definition: HashCacheTypes.h:37
Custom sub view options.
Definition: BlockDifficultyCacheTypes.h:70
A mixin for adding contains support to a cache.
Definition: CacheMixins.h:54
deltaset::PruningBoundary< ValueType > pruningBoundary() const
Gets the pruning boundary that is used during commit.
Definition: BlockDifficultyCacheDelta.cpp:40
def info(*args)
Definition: forwardsValidation.py:12
std::shared_ptr< BaseSetDeltaType > BaseSetDeltaPointerType
Base set delta pointer type.
Definition: CacheDescriptorAdapters.h:140
Basic delta on top of the block difficulty cache.
Definition: BlockDifficultyCacheDelta.h:36
std::unique_ptr< IterableView > tryMakeIterableView() const
Definition: BlockDifficultyCacheDelta.cpp:44
BlockDifficultyCacheDescriptor::ValueType ValueType
Definition: BlockDifficultyCacheDelta.h:43
BlockDifficultyCacheDelta(const BlockDifficultyCacheTypes::BaseSetDeltaPointers &difficultyInfoSets, const BlockDifficultyCacheTypes::Options &options)
Creates a delta around difficultyInfoSets and options.
Definition: BlockDifficultyCacheDelta.h:96
A class that can be moved but not copied.
Definition: NonCopyable.h:43
Delta on top of the block difficulty cache.
Definition: BlockDifficultyCacheDelta.h:93
#define CATAPULT_THROW_RUNTIME_ERROR(MESSAGE)
Macro used to throw a catapult runtime error.
Definition: exceptions.h:167
deltaset::PruningBoundary< ValueType > m_pruningBoundary
Definition: BlockDifficultyCacheDelta.h:89
uint64_t m_difficultyHistorySize
Definition: BlockDifficultyCacheDelta.h:87
void remove(const ValueType &info)
Removes a block difficulty info from the set.
Definition: BlockDifficultyCacheDelta.cpp:58
Height nextHeight() const
Definition: BlockDifficultyCacheDelta.cpp:109
#define CATAPULT_THROW_INVALID_ARGUMENT(MESSAGE)
Macro used to throw a catapult invalid argument.
Definition: exceptions.h:179
Represents an optional pruning boundary.
Definition: PruningBoundary.h:27
Definition: AddressExtractionExtension.cpp:28
A mixin for adding size support to a cache.
Definition: CacheMixins.h:36
void insert(const ValueType &info)
Inserts a block difficulty info into the set.
Definition: BlockDifficultyCacheDelta.cpp:48
void checkRemove(Height height) const
Definition: BlockDifficultyCacheDelta.cpp:98
BaseSetDeltaIterationView< TSetTraits > MakeIterableView(const BaseSetDelta< TElementTraits, TSetTraits > &delta)
Definition: BaseSetDeltaIterationView.h:200
void checkInsert(Height height)
Definition: BlockDifficultyCacheDelta.cpp:85
void prune(Height height)
Definition: BlockDifficultyCacheDelta.cpp:68
Grouping of all basic cache mixins for a single set.
Definition: CacheMixinAliases.h:30
KeyType ValueType
Definition: BlockDifficultyCacheTypes.h:46