Belle II Software development
VoidObserver.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11
12namespace Belle2 {
31 public:
32
36 template < typename ... types >
37 static void notify(const types& ...) {};
38
42 template < typename ... types >
43 static bool initialize(const types& ...) { return true; };
44
48 template < typename ... types >
49 static void prepare(const types& ...) {};
50
54 template < typename ... types >
55 static void collect(const types& ...) {};
56
57
60
63
64
66 template < typename ... types >
67 static void terminate(const types& ...) {};
68 };
70}
The most CPU efficient Observer for the VXDTF filter tools (even if useless).
Definition: VoidObserver.h:30
~VoidObserver()
An empty destructor for an empty class.
Definition: VoidObserver.h:62
static void terminate(const types &...)
static method used by the observed object to terminate the observer.
Definition: VoidObserver.h:67
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:49
VoidObserver()
An empty constructor for an empty class.
Definition: VoidObserver.h:59
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:43
static void notify(const types &...)
static method used by the observed object to notify the observer.
Definition: VoidObserver.h:37
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:55
Abstract base class for different kinds of events.