CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace catapult {
namespace cache {
46 const BlockDifficultyCacheTypes::BaseSets& difficultyInfoSets,
62 const BlockDifficultyCacheTypes::BaseSets& difficultyInfoSets,
A mixin for adding iteration support to a cache.
Definition: CacheMixins.h:75
Decorates a view and supplies a read-only view.
Definition: ReadOnlyViewSupplier.h:28
ReadOnlySimpleCache< BasicBlockDifficultyCacheView, BasicBlockDifficultyCacheDelta, state::BlockDifficultyInfo > CacheReadOnlyType
Definition: BlockDifficultyCacheTypes.h:67
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
Describes a block difficulty cache.
Definition: BlockDifficultyCacheTypes.h:42
Definition: BlockDifficultyInfo.h:28
constexpr ValueType unwrap() const
Unwraps this value and returns the underlying raw value.
Definition: BaseValue.h:53
A range of block difficulty infos.
Definition: BlockDifficultyCacheTypes.h:77
BasicBlockDifficultyCacheView(const BlockDifficultyCacheTypes::BaseSets &difficultyInfoSets, const BlockDifficultyCacheTypes::Options &options)
Creates a view around difficultyInfoSets and options.
Definition: BlockDifficultyCacheView.cpp:27
A read-only overlay on top of a cache that provides support for contains.
Definition: HashCacheTypes.h:37
Basic view on top of the block difficulty cache.
Definition: BlockDifficultyCacheView.h:35
Custom sub view options.
Definition: BlockDifficultyCacheTypes.h:70
A mixin for adding contains support to a cache.
Definition: CacheMixins.h:54
View on top of the block difficulty cache.
Definition: BlockDifficultyCacheView.h:58
#define CATAPULT_THROW_INVALID_ARGUMENT_1(MESSAGE, PARAM1)
Macro used to throw a catapult invalid argument with a single parameter.
Definition: exceptions.h:183
deltaset::OrderedSet< TElementTraits, StorageTraits > BaseSetType
Base set type.
Definition: CacheDescriptorAdapters.h:134
BlockDifficultyCacheView(const BlockDifficultyCacheTypes::BaseSets &difficultyInfoSets, const BlockDifficultyCacheTypes::Options &options)
Creates a view around difficultyInfoSets and options.
Definition: BlockDifficultyCacheView.h:61
DifficultyInfoRange difficultyInfos(Height height, size_t count) const
Gets a range object that spans count block difficulty infos starting at the specified height.
Definition: BlockDifficultyCacheView.cpp:42
A class that can be moved but not copied.
Definition: NonCopyable.h:43
#define CATAPULT_THROW_RUNTIME_ERROR(MESSAGE)
Macro used to throw a catapult runtime error.
Definition: exceptions.h:167
const BlockDifficultyCacheTypes::PrimaryTypes::BaseSetType & m_difficultyInfos
Definition: BlockDifficultyCacheView.h:54
#define CATAPULT_THROW_INVALID_ARGUMENT(MESSAGE)
Macro used to throw a catapult invalid argument.
Definition: exceptions.h:179
Definition: AddressExtractionExtension.cpp:28
A mixin for adding size support to a cache.
Definition: CacheMixins.h:36
BaseSetDeltaIterationView< TSetTraits > MakeIterableView(const BaseSetDelta< TElementTraits, TSetTraits > &delta)
Definition: BaseSetDeltaIterationView.h:200
BasicCacheMixins< BlockDifficultyCacheTypes::PrimaryTypes::BaseSetType, BlockDifficultyCacheDescriptor > BlockDifficultyCacheViewMixins
Mixins used by the block difficulty cache view.
Definition: BlockDifficultyCacheView.h:32
Grouping of all basic cache mixins for a single set.
Definition: CacheMixinAliases.h:30