Belle II Software development
VoidObserver Class Reference

The most CPU efficient Observer for the VXDTF filter tools (even if useless). More...

#include <VoidObserver.h>

Inheritance diagram for VoidObserver:
CountAcceptRejectObserver CountAcceptedRejectedMCParticleObserver CountBadCaseObserver CountUsedObserver InfoObserver ProvideBasicInfoObserver VectorOfObservers< FilterType > Observer ResultsObserver ResultsObserver ResultsObserver CountingObserver ErrorObserver InfoObserver VectorOfObservers< FilterType >

Public Member Functions

 VoidObserver ()
 An empty constructor for an empty class.
 
 ~VoidObserver ()
 An empty destructor for an empty class.
 

Static Public Member Functions

template<typename ... types>
static void notify (const types &...)
 static method used by the observed object to notify the observer.
 
template<typename ... types>
static bool initialize (const types &...)
 static method used by the observed object to initialize the observer it is called once usually from the user.
 
template<typename ... types>
static void prepare (const types &...)
 static method used by the observed object to prepare the observer it is called by the boolean filter operator.
 
template<typename ... types>
static void collect (const types &...)
 static method used by the observed object to prepare the observer it is called by the boolean filter operator.
 
template<typename ... types>
static void terminate (const types &...)
 static method used by the observed object to terminate the observer.
 

Detailed Description

The most CPU efficient Observer for the VXDTF filter tools (even if useless).

The VoidObserver is ment to be the simplest (and most useless) Observer for the VXDTF filter tools. It is notified of relevant informations by the observed object via the the notify method. This particular observer does not take any action to record the messages, hence the compiler will simply skip the call (in optimized compilation mode). More evolved and useful observers can derive from this one (even if not strictly necessary).

Definition at line 30 of file VoidObserver.h.

Constructor & Destructor Documentation

◆ VoidObserver()

VoidObserver ( )
inline

An empty constructor for an empty class.

Definition at line 59 of file VoidObserver.h.

59{};

◆ ~VoidObserver()

~VoidObserver ( )
inline

An empty destructor for an empty class.

Definition at line 62 of file VoidObserver.h.

62{};

Member Function Documentation

◆ collect()

static void collect ( const types &  ...)
inlinestatic

static method used by the observed object to prepare the observer it is called by the boolean filter operator.

Definition at line 55 of file VoidObserver.h.

55{};

◆ initialize()

static bool initialize ( const types &  ...)
inlinestatic

static method used by the observed object to initialize the observer it is called once usually from the user.

Definition at line 43 of file VoidObserver.h.

43{ return true; };

◆ notify()

static void notify ( const types &  ...)
inlinestatic

static method used by the observed object to notify the observer.

it is called at each accept.

Definition at line 37 of file VoidObserver.h.

37{};

◆ prepare()

static void prepare ( const types &  ...)
inlinestatic

static method used by the observed object to prepare the observer it is called by the boolean filter operator.

Definition at line 49 of file VoidObserver.h.

49{};

◆ terminate()

static void terminate ( const types &  ...)
inlinestatic

static method used by the observed object to terminate the observer.

Definition at line 67 of file VoidObserver.h.

67{};

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