Belle II Software development
|
WARNING TODO: More...
Public Types | |
typedef std::function< void(const FilterType &, typename FilterType::variableType, const typename FilterType::argumentType &, const typename FilterType::argumentType &)> | 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 range , typename ... otherTypes> | |
static void | notify (const FilterType &filterType, typename FilterType::variableType filterResult, const range &, 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) | |
WARNING TODO:
Definition at line 691 of file observers.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 699 of file observers.cc.
typedef std::function< void (const FilterType&, typename FilterType::variableType, const typename FilterType::argumentType&, const typename FilterType::argumentType&)> observerFunction |
a typedef to make the stuff more readable
Definition at line 696 of file observers.cc.
|
inlinestatic |
collects observers to be executed during notify (can not be used so far, but is long-term goal)
Definition at line 729 of file observers.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 704 of file observers.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 738 of file observers.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 740 of file observers.cc.