![]() |
The Gaudi Framework
v37r0 (b608885e)
|
Example of a ConditionAccessorHolder implementation. More...
#include </builds/gaudi/Gaudi/GaudiExamples/include/Gaudi/Examples/Conditions/ConditionAccessorHolder.h>


Classes | |
| class | ConditionAccessor |
| Class wrapping the communication between condition users and conditions backend. More... | |
Public Types | |
| using | base_class = ConditionAccessorHolder< Base > |
| Helper to expose this class to specializations without having to spell the whole name (see Gaudi::Examples::Conditions::UserAlg) More... | |
| using | ConditionContext = details::ConditionsStore::ConditionContext |
| Forward backend specific ConditionContext to specializations. More... | |
| using | ConditionKey = details::ConditionsStore::ConditionKey |
| Forward backend specific ConditionKey to specializations. More... | |
Public Member Functions | |
| StatusCode | initialize () override |
| const ConditionContext & | getConditionContext (const EventContext &ctx) const |
| Helper to map the event being processed to the corresponding conditions slot. More... | |
Private Member Functions | |
| template<typename T > | |
| void | registerConditionAccessor (ConditionAccessor< T > &accessor) |
| Register a ConditionAccessor instance to internal bookkeeping. More... | |
Private Attributes | |
| std::list< std::function< void()> > | m_delayedRegistrations |
| Helper to postpone the registration to the backend. More... | |
Friends | |
| template<typename T > | |
| class | ConditionAccessor |
Example of a ConditionAccessorHolder implementation.
Requirements are:
base_class (this type)ConditionAccessor<T>ConditionContextConditionKeyconst ConditionContext& getConditionContext( const EventContext& ) constvoid registerConditionAccessor<T>( ConditionAccessor<T>& accessor ))Component classes that require conditions have to inherit from this class, templated with the component base class. E.g.
See Gaudi::Examples::Conditions::UserAlg for example.
Definition at line 77 of file ConditionAccessorHolder.h.
| using Gaudi::Examples::Conditions::ConditionAccessorHolder< Base >::base_class = ConditionAccessorHolder<Base> |
Helper to expose this class to specializations without having to spell the whole name (see Gaudi::Examples::Conditions::UserAlg)
Definition at line 84 of file ConditionAccessorHolder.h.
| using Gaudi::Examples::Conditions::ConditionAccessorHolder< Base >::ConditionContext = details::ConditionsStore::ConditionContext |
Forward backend specific ConditionContext to specializations.
It is used to refer to a specific conditions slot.
Definition at line 89 of file ConditionAccessorHolder.h.
| using Gaudi::Examples::Conditions::ConditionAccessorHolder< Base >::ConditionKey = details::ConditionsStore::ConditionKey |
Forward backend specific ConditionKey to specializations.
Used to identify a specific condition in a condition slot.
Definition at line 94 of file ConditionAccessorHolder.h.
|
inline |
Helper to map the event being processed to the corresponding conditions slot.
Definition at line 141 of file ConditionAccessorHolder.h.
|
inlineoverride |
Definition at line 127 of file ConditionAccessorHolder.h.
|
inlineprivate |
Register a ConditionAccessor instance to internal bookkeeping.
Definition at line 151 of file ConditionAccessorHolder.h.
Definition at line 147 of file ConditionAccessorHolder.h.
|
private |
Helper to postpone the registration to the backend.
In Gaudi properties are set during initialize, so, in this example implementation, the registration has to be delayed from construction time to initialization time.
Definition at line 163 of file ConditionAccessorHolder.h.