Belle II Software  release-05-02-19
VoidObserver.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2013 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Eugenio Paoloni *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 
14 namespace Belle2 {
32  class VoidObserver {
33  public:
34 
38  template < typename ... types >
39  static void notify(const types& ...) {};
40 
44  template < typename ... types >
45  static bool initialize(const types& ...) { return true; };
46 
50  template < typename ... types >
51  static void prepare(const types& ...) {};
52 
56  template < typename ... types >
57  static void collect(const types& ...) {};
58 
59 
61  VoidObserver() {};
62 
64  ~VoidObserver() {};
65 
66 
68  template < typename ... types >
69  static void terminate(const types& ...) {};
70  };
72 }
Belle2::VoidObserver::collect
static void collect(const types &...)
static method used by the observed object to prepare the observer it is called by the boolean filter ...
Definition: VoidObserver.h:65
Belle2::VoidObserver::~VoidObserver
~VoidObserver()
An empty destructor for an empty class.
Definition: VoidObserver.h:72
Belle2::VoidObserver::notify
static void notify(const types &...)
static method used by the observed object to notify the observer.
Definition: VoidObserver.h:47
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::VoidObserver::prepare
static void prepare(const types &...)
static method used by the observed object to prepare the observer it is called by the boolean filter ...
Definition: VoidObserver.h:59
Belle2::VoidObserver::VoidObserver
VoidObserver()
An empty constructor for an empty class.
Definition: VoidObserver.h:69
Belle2::VoidObserver::initialize
static bool initialize(const types &...)
static method used by the observed object to initialize the observer it is called once usually from t...
Definition: VoidObserver.h:53
Belle2::VoidObserver::terminate
static void terminate(const types &...)
static method used by the observed object to terminate the observer.
Definition: VoidObserver.h:77