CatapultServer  v0.5.0.1 (Elephant)
catapult::subscribers::AggregateBlockChangeSubscriber< TBlockChangeSubscriber > Class Template Reference

Aggregate block change subscriber. More...

Inheritance diagram for catapult::subscribers::AggregateBlockChangeSubscriber< TBlockChangeSubscriber >:
Collaboration diagram for catapult::subscribers::AggregateBlockChangeSubscriber< TBlockChangeSubscriber >:

Public Member Functions

void notifyBlock (const model::BlockElement &blockElement) override
 Indicates blockElement was saved. More...
 
void notifyDropBlocksAfter (Height height) override
 Indicates all blocks after height were invalidated. More...
 
- Public Member Functions inherited from catapult::subscribers::BasicAggregateSubscriber< TBlockChangeSubscriber >
 BasicAggregateSubscriber (std::vector< std::unique_ptr< TBlockChangeSubscriber >> &&subscribers)
 Creates an aggregate subscriber around subscribers. More...
 
- Public Member Functions inherited from catapult::io::BlockChangeSubscriber
virtual ~BlockChangeSubscriber ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from catapult::subscribers::BasicAggregateSubscriber< TBlockChangeSubscriber >
void forEach (TAction action) const
 

Detailed Description

template<typename TBlockChangeSubscriber = io::BlockChangeSubscriber>
class catapult::subscribers::AggregateBlockChangeSubscriber< TBlockChangeSubscriber >

Aggregate block change subscriber.

Member Function Documentation

◆ notifyBlock()

template<typename TBlockChangeSubscriber = io::BlockChangeSubscriber>
void catapult::subscribers::AggregateBlockChangeSubscriber< TBlockChangeSubscriber >::notifyBlock ( const model::BlockElement blockElement)
inlineoverridevirtual

Indicates blockElement was saved.

Implements catapult::io::BlockChangeSubscriber.

Here is the call graph for this function:

◆ notifyDropBlocksAfter()

template<typename TBlockChangeSubscriber = io::BlockChangeSubscriber>
void catapult::subscribers::AggregateBlockChangeSubscriber< TBlockChangeSubscriber >::notifyDropBlocksAfter ( Height  height)
inlineoverridevirtual

Indicates all blocks after height were invalidated.

Implements catapult::io::BlockChangeSubscriber.

Here is the call graph for this function:

The documentation for this class was generated from the following file: