![]() |
ATLAS Offline Software
|
doubly templated class interfacing access to feature containers in StoreGate. More...
#include <TypedHolder.h>
Public Types | |
template<typename T , bool value> | |
using | StatusCode_if = typename std::enable_if< std::is_same< T, CONTAINER >::value==value, StatusCode >::type |
shorthand for enable_if with returning StatusCode base on comparison with CONTAINER type More... | |
Public Member Functions | |
TypedHolder (const BaseHolder &baseholder, const asg::EventStoreType *store, const std::string &container_name=ClassID_traits< CONTAINER >::typeName()) | |
constructor from BaseHolder. More... | |
TypedHolder (const TypelessHolder &typeless, const asg::EventStoreType *store, const std::string &container_name=ClassID_traits< CONTAINER >::typeName()) | |
constructor from BaseHolder. More... | |
const std::string & | key () const |
key used to access EventStore More... | |
template<typename T > | |
StatusCode_if< T, true > | get (const T *&destination, HLT::TriggerElement::ObjectIndex idx) |
method creates a new VIEW container containing pointers to the elements pointed to by the ObjectIndex. More... | |
template<typename T > | |
StatusCode_if< T, false > | get (const T *&destination, HLT::TriggerElement::ObjectIndex idx) |
method retrieves container from storegated and returns pointer at passed ObjectIndex Only enabled for ELEMENT holders (i.e. More... | |
Private Member Functions | |
StatusCode | syncWithStore () |
cache container retrieved from StoreGate More... | |
TypedHolder () | |
Private Attributes | |
const asg::EventStoreType * | m_store = nullptr |
const CONTAINER * | m_cont = nullptr |
std::string | m_key |
doubly templated class interfacing access to feature containers in StoreGate.
Definition at line 42 of file TypedHolder.h.
using HLT::TypedHolder< FEATURE, CONTAINER >::StatusCode_if = typename std::enable_if<std::is_same<T,CONTAINER>::value == value,StatusCode>::type |
shorthand for enable_if with returning StatusCode base on comparison with CONTAINER type
Definition at line 60 of file TypedHolder.h.
|
inline |
constructor from BaseHolder.
Throws runtime exception if clids of BaseHolder and FEATURE type don't match
Definition at line 66 of file TypedHolder.h.
|
inline |
constructor from BaseHolder.
Throws runtime exception if clids of BaseHolder and FEATURE type don't match
Definition at line 79 of file TypedHolder.h.
|
inlineprivate |
Definition at line 171 of file TypedHolder.h.
|
inline |
method creates a new VIEW container containing pointers to the elements pointed to by the ObjectIndex.
Caller owns the VIEW container. Only enabled for CONTAINER holders
Definition at line 99 of file TypedHolder.h.
|
inline |
method retrieves container from storegated and returns pointer at passed ObjectIndex Only enabled for ELEMENT holders (i.e.
non CONTAINER)
Definition at line 135 of file TypedHolder.h.
|
inline |
|
inlineprivate |
cache container retrieved from StoreGate
Definition at line 159 of file TypedHolder.h.
|
private |
Definition at line 173 of file TypedHolder.h.
|
private |
Definition at line 174 of file TypedHolder.h.
|
private |
Definition at line 172 of file TypedHolder.h.