CatapultServer  v0.5.0.1 (Elephant)
catapult::chain::ProcessingUndoNotificationSubscriber Class Reference

A notification subscriber that captures notifications and allows them to be undone. More...

Inheritance diagram for catapult::chain::ProcessingUndoNotificationSubscriber:
Collaboration diagram for catapult::chain::ProcessingUndoNotificationSubscriber:

Public Member Functions

 ProcessingUndoNotificationSubscriber (const observers::NotificationObserver &observer, observers::ObserverContext &observerContext)
 Creates a subscriber around observer and observerContext. More...
 
void undo ()
 Undoes all executions. More...
 
void notify (const model::Notification &notification) override
 Notifies the subscriber of notification. More...
 
- Public Member Functions inherited from catapult::model::NotificationSubscriber
virtual ~NotificationSubscriber ()=default
 

Private Member Functions

void observe (const model::Notification &notification)
 

Private Attributes

const observers::NotificationObserverm_observer
 
observers::ObserverContextm_observerContext
 
std::vector< std::vector< uint8_t > > m_notificationBuffers
 

Detailed Description

A notification subscriber that captures notifications and allows them to be undone.

Constructor & Destructor Documentation

◆ ProcessingUndoNotificationSubscriber()

catapult::chain::ProcessingUndoNotificationSubscriber::ProcessingUndoNotificationSubscriber ( const observers::NotificationObserver observer,
observers::ObserverContext observerContext 
)

Creates a subscriber around observer and observerContext.

Member Function Documentation

◆ notify()

void catapult::chain::ProcessingUndoNotificationSubscriber::notify ( const model::Notification notification)
overridevirtual

Notifies the subscriber of notification.

Implements catapult::model::NotificationSubscriber.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ observe()

void catapult::chain::ProcessingUndoNotificationSubscriber::observe ( const model::Notification notification)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ undo()

void catapult::chain::ProcessingUndoNotificationSubscriber::undo ( )

Undoes all executions.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_notificationBuffers

std::vector<std::vector<uint8_t> > catapult::chain::ProcessingUndoNotificationSubscriber::m_notificationBuffers
private

◆ m_observer

const observers::NotificationObserver& catapult::chain::ProcessingUndoNotificationSubscriber::m_observer
private

◆ m_observerContext

observers::ObserverContext& catapult::chain::ProcessingUndoNotificationSubscriber::m_observerContext
private

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