CatapultServer
v0.5.0.1 (Elephant)
|
Delta on top of the block difficulty cache. More...
Public Member Functions | |
BlockDifficultyCacheDelta (const BlockDifficultyCacheTypes::BaseSetDeltaPointers &difficultyInfoSets, const BlockDifficultyCacheTypes::Options &options) | |
Creates a delta around difficultyInfoSets and options. More... | |
Public Member Functions inherited from catapult::cache::ReadOnlyViewSupplier< BasicBlockDifficultyCacheDelta > | |
ReadOnlyViewSupplier (TArgs &&... args) | |
Creates a read-only view supplier around args. More... | |
ReadOnlyViewSupplier (ReadOnlyViewSupplier &&rhs) | |
const BasicBlockDifficultyCacheDelta ::ReadOnlyView & | asReadOnly () const |
Returns a read-only view of this view. More... | |
Public Member Functions inherited from catapult::cache::BasicBlockDifficultyCacheDelta | |
BasicBlockDifficultyCacheDelta (const BlockDifficultyCacheTypes::BaseSetDeltaPointers &difficultyInfoSets, const BlockDifficultyCacheTypes::Options &options) | |
Creates a delta around difficultyInfoSets and options. More... | |
deltaset::PruningBoundary< ValueType > | pruningBoundary () const |
Gets the pruning boundary that is used during commit. More... | |
std::unique_ptr< IterableView > | tryMakeIterableView () const |
void | insert (const ValueType &info) |
Inserts a block difficulty info into the set. More... | |
void | insert (Height height, Timestamp timestamp, Difficulty difficulty) |
Inserts a block difficulty info into the set given a height and a timestamp and a difficulty. More... | |
void | remove (const ValueType &info) |
Removes a block difficulty info from the set. More... | |
void | remove (Height height) |
Removes a block difficulty info from the set given a height. More... | |
void | prune (Height height) |
Public Member Functions inherited from catapult::utils::MoveOnly | |
constexpr | MoveOnly ()=default |
Default constructor. More... | |
~MoveOnly ()=default | |
Default destructor. More... | |
MoveOnly (const NonCopyable &)=delete | |
Disabled copy constructor. More... | |
MoveOnly (MoveOnly &&)=default | |
Default move constructor. More... | |
MoveOnly & | operator= (const MoveOnly &)=delete |
Disabled assignment operator. More... | |
MoveOnly & | operator= (MoveOnly &&)=default |
Default move assignment operator. More... | |
Public Member Functions inherited from catapult::cache::SizeMixin< TSet > | |
SizeMixin (const TSet &set) | |
Creates a mixin around set. More... | |
size_t | size () const |
Gets the number of elements in the cache. More... | |
Public Member Functions inherited from catapult::cache::ContainsMixin< TSet, TCacheDescriptor > | |
ContainsMixin (const TSet &set) | |
Creates a mixin around set. More... | |
bool | contains (const KeyType &key) const |
Gets a value indicating whether or not the cache contains an element with key. More... | |
Public Member Functions inherited from catapult::deltaset::DeltaElementsMixin< TSetDelta > | |
DeltaElementsMixin (const TSetDelta &setDelta) | |
Creates a mixin around setDelta. More... | |
PointerContainer | addedElements () const |
Gets pointers to all added elements. More... | |
PointerContainer | modifiedElements () const |
Gets pointers to all modified elements. More... | |
PointerContainer | removedElements () const |
Gets pointers to all removed elements. More... | |
Additional Inherited Members | |
Public Types inherited from catapult::cache::BasicBlockDifficultyCacheDelta | |
using | ReadOnlyView = BlockDifficultyCacheTypes::CacheReadOnlyType |
using | ValueType = BlockDifficultyCacheDescriptor::ValueType |
using | IterableView = IterationMixin< BlockDifficultyCacheTypes::PrimaryTypes::BaseSetDeltaType >::IterableView |
Delta on top of the block difficulty cache.
|
inlineexplicit |
Creates a delta around difficultyInfoSets and options.