Belle II Software development
|
this observer does simply collect other observers which are to be executed during the call of the corresponding notify function(s) More...
Public Types | |
typedef std::function< void(const typename FilterType::argumentType &, const typename FilterType::argumentType &, const FilterType &, typename FilterType::variableType)> | observerFunction |
a typedef to make the stuff more readable | |
using | CStyleFunctionPointer = void(*)(const typename FilterType::argumentType &, const typename FilterType::argumentType &, const FilterType &, typename FilterType::variableType) |
a typedef to make the c-style pointer more readable (can not be done with classic typedef) | |
Static Public Member Functions | |
template<typename ... otherTypes> | |
static void | notify (const FilterType &filterType, typename FilterType::variableType fResult, const typename FilterType::argumentType &outerHit, const typename FilterType::argumentType &innerHit, otherTypes ...) |
iterate over all stored Observers and execute their notify-function | |
template<typename ObserverType > | |
static void | addObserver (observerFunction newObserver) |
collects observers to be executed during notify (can not be used so far, but is long-term goal) | |
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. | |
Static Public Attributes | |
static std::vector< observerFunction > | sm_collectedObservers = {} |
collects observers with std::function to be executed during notify (variant A) | |
static std::vector< CStyleFunctionPointer > | sm_collectedObserversCSTYLE = {} |
collects observers with c-style function pointers to be executed during notify (variant B) | |
this observer does simply collect other observers which are to be executed during the call of the corresponding notify function(s)
Definition at line 167 of file twoHitFilters.cc.
using CStyleFunctionPointer = void(*)(const typename FilterType::argumentType&, const typename FilterType::argumentType&, const FilterType&, typename FilterType::variableType) |
a typedef to make the c-style pointer more readable (can not be done with classic typedef)
Definition at line 175 of file twoHitFilters.cc.
typedef std::function< void (const typename FilterType::argumentType&, const typename FilterType::argumentType&, const FilterType&, typename FilterType::variableType)> observerFunction |
a typedef to make the stuff more readable
Definition at line 172 of file twoHitFilters.cc.
|
inlinestatic |
collects observers to be executed during notify (can not be used so far, but is long-term goal)
Definition at line 203 of file twoHitFilters.cc.
|
inlinestaticinherited |
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.
|
inlinestaticinherited |
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.
|
inlinestatic |
iterate over all stored Observers and execute their notify-function
the idea of the following three lines have to work in the end (I basically want to loop over all attached observers and execute their notify function):
or
Definition at line 180 of file twoHitFilters.cc.
|
inlinestaticinherited |
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.
|
inlinestaticinherited |
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.
|
inlinestaticinherited |
static method used by the observed object to terminate the observer.
Definition at line 67 of file VoidObserver.h.
|
static |
collects observers with std::function to be executed during notify (variant A)
initialize static member of variant A
Definition at line 211 of file twoHitFilters.cc.
|
static |
collects observers with c-style function pointers to be executed during notify (variant B)
initialize static member of variant B
Definition at line 213 of file twoHitFilters.cc.