CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace state {
70 ActivityBucketStack::const_iterator
begin()
const;
73 ActivityBucketStack::const_iterator
end()
const;
79 bool shouldCreateNewBucket);
void pop()
Pops the current bucket.
Definition: AccountActivityBuckets.cpp:41
ActivityBucketStack m_buckets
Definition: AccountActivityBuckets.h:82
const T & peek() const
Returns a const reference to the element on the top of the stack.
Definition: CompactArrayStack.h:161
Stack of account activity buckets.
Definition: AccountActivityBuckets.h:29
ActivityBucketStack::const_iterator end() const
Returns a const iterator to the element following the last element of the underlying container.
Definition: AccountActivityBuckets.cpp:49
ActivityBucket get(model::ImportanceHeight height) const
Gets activity bucket at height.
Definition: AccountActivityBuckets.cpp:25
const_iterator begin() const
Returns a const iterator to the first element of the underlying container.
Definition: CompactArrayStack.h:150
Amount TotalFeesPaid
Total fees paid by account.
Definition: AccountActivityBuckets.h:34
model::ImportanceHeight StartHeight
Activity start height.
Definition: AccountActivityBuckets.h:46
Temporal activity information including height.
Definition: AccountActivityBuckets.h:44
bool tryUpdate(model::ImportanceHeight height, const consumer< HeightDetachedActivityBucket & > &consumer)
Definition: AccountActivityBuckets.cpp:37
ActivityBucketStack::const_iterator begin() const
Returns a const iterator to the first element of the underlying container.
Definition: AccountActivityBuckets.cpp:45
const_iterator end() const
Returns a const iterator to the element following the last element of the underlying container.
Definition: CompactArrayStack.h:155
void push(const T &value)
Pushes value onto the stack.
Definition: CompactArrayStack.h:178
#define CATAPULT_THROW_RUNTIME_ERROR(MESSAGE)
Macro used to throw a catapult runtime error.
Definition: exceptions.h:167
void update(model::ImportanceHeight height, const consumer< HeightDetachedActivityBucket & > &consumer)
Definition: AccountActivityBuckets.cpp:33
uint64_t RawScore
Optional user defined score component.
Definition: AccountActivityBuckets.h:40
uint32_t BeneficiaryCount
Number of times account has been used as a beneficiary.
Definition: AccountActivityBuckets.h:37
Definition: AddressExtractionExtension.cpp:28
void pop()
Pops the top value from the stack.
Definition: CompactArrayStack.h:190
Temporal activity information excluding height.
Definition: AccountActivityBuckets.h:32
std::function< void(TArgs...)> consumer
A consumer function.
Definition: functions.h:35