CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace subscribers {
28 template<
typename TStateChangeSubscriber = StateChangeSubscriber>
35 this->
forEach([&chainScore](
auto& subscriber) { subscriber.notifyScoreChange(chainScore); });
39 this->
forEach([&stateChangeInfo](
auto& subscriber) { subscriber.notifyStateChange(stateChangeInfo); });
Aggregate state change subscriber.
Definition: AggregateStateChangeSubscriber.h:29
State change subscriber.
Definition: StateChangeSubscriber.h:31
void notifyScoreChange(const model::ChainScore &chainScore) override
Indicates chain score was changed to chainScore.
Definition: AggregateStateChangeSubscriber.h:34
Definition: ChainScore.h:30
void notifyStateChange(const StateChangeInfo &stateChangeInfo) override
Indicates state was changed with change information in stateChangeInfo.
Definition: AggregateStateChangeSubscriber.h:38
void forEach(TAction action) const
Definition: BasicAggregateSubscriber.h:38
Basic aggregate subscriber.
Definition: BasicAggregateSubscriber.h:29
State change information.
Definition: StateChangeInfo.h:29
Definition: AddressExtractionExtension.cpp:28