AMDiS  0.1
The Adaptive Multi-Dimensional Simulation Toolbox
Notifier< Event, Events > Class Template Reference

Mixin for signaling of certain events. More...

#include <Observer.hpp>

Detailed Description

template<class Event, class... Events>
class AMDiS::Notifier< Event, Events >

Mixin for signaling of certain events.

Derived classes T can emit a signal e by calling notify(e). This will send the signal to all classes U... deriving from Observer<S, Events...> if

  • the type of the event is included in Events,
  • T = S or S is an Observer of T (directly or indirectly via other Observers),
  • U called the Observer constructor with an instance of S that has direct or indirect access to the instance of T (see Observer)

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