![]() |
ATLAS Offline Software
|
Conditions container for which keys are ranges in both Run+LBN and timestamp. More...
#include <CondCont.h>
Public Types | |
| typedef CondContMixedBaseInfo< T >::Base | Base |
| Base class. More... | |
| typedef Base::CondContSet | CondContSet |
| typedef T | Payload |
| Payload type held by this class. More... | |
| typedef CondContBase::key_type | key_type |
Public Member Functions | |
| virtual | ~CondContMixed () |
| Destructor. More... | |
| CondContMixed (const CondContMixed &)=delete | |
| No copying. More... | |
| CondContMixed & | operator= (const CondContMixed &)=delete |
| StatusCode | insert (const EventIDRange &r, std::unique_ptr< T > obj, const EventContext &ctx=Gaudi::Hive::currentContext()) |
| Insert a new conditions object. More... | |
| bool | find (const EventIDBase &t, T const *&obj, EventIDRange const **r=nullptr) const |
| Look up a conditions object for a given time. More... | |
| const T * | find (const EventIDBase &t) const |
| Look up a conditions object for a given time. More... | |
Static Public Member Functions | |
| static void | registerBaseInit () |
| Helper to ensure that the inheritance information for this class gets initialized. More... | |
Protected Member Functions | |
| CondContMixed (Athena::IRCUSvc &rcusvc, CLID clid, const DataObjID &id, SG::DataProxy *proxy, std::shared_ptr< typename CondContSet::IPayloadDeleter > payloadDeleter, size_t capacity) | |
| Internal Constructor. More... | |
| CondContMixed (Athena::IRCUSvc &rcusvc, CLID clid, const DataObjID &id, SG::DataProxy *proxy, size_t capacity) | |
| Internal Constructor. More... | |
| const void * | cast (CLID clid, const void *ptr) const |
| Do pointer conversion for the payload type. More... | |
| virtual const void * | doCast (CLID clid, const void *ptr) const override |
| Do pointer conversion for the payload type. More... | |
Conditions container for which keys are ranges in both Run+LBN and timestamp.
Don't use this directly; instead declare your container with CONDCONT_MIXED_DEF and then use CondCont<T>.
Definition at line 1198 of file CondCont.h.
| typedef CondContMixedBaseInfo<T>::Base CondContMixed< T >::Base |
Base class.
Definition at line 1258 of file CondCont.h.
| typedef Base::CondContSet CondContMixed< T >::CondContSet |
Definition at line 1260 of file CondCont.h.
| typedef CondContBase::key_type CondContMixed< T >::key_type |
Definition at line 1265 of file CondCont.h.
| typedef T CondContMixed< T >::Payload |
Payload type held by this class.
Definition at line 1263 of file CondCont.h.
|
virtual |
Destructor.
|
delete |
No copying.
|
protected |
|
protected |
|
protected |
Do pointer conversion for the payload type.
| clid | CLID for the desired pointer type. |
| ptr | Pointer of type T*. |
Converts ptr from T* to a pointer to the type given by clid. Returns nullptr if the conversion is not possible.
|
overrideprotectedvirtual |
Do pointer conversion for the payload type.
| clid | CLID for the desired pointer type. |
| ptr | Pointer of type T*. |
Converts ptr from T* to a pointer to the type given by clid. Returns nullptr if the conversion is not possible.
This is a virtual function that calls cast from the most-derived class of the hierarchy.
| const T* CondContMixed< T >::find | ( | const EventIDBase & | t | ) | const |
Look up a conditions object for a given time.
| t | IOV time to find. |
Returns the found object, or nullptr.
This variant may be more convenient to call from python.
| bool CondContMixed< T >::find | ( | const EventIDBase & | t, |
| T const *& | obj, | ||
| EventIDRange const ** | r = nullptr |
||
| ) | const |
Look up a conditions object for a given time.
| t | IOV time to find. |
| obj[out] | Object found. |
| r | If non-null, copy validity range of the object here. |
Returns true if the object was found; false otherwide.
| StatusCode CondContMixed< T >::insert | ( | const EventIDRange & | r, |
| std::unique_ptr< T > | obj, | ||
| const EventContext & | ctx = Gaudi::Hive::currentContext() |
||
| ) |
Insert a new conditions object.
| r | Range of validity of this object. |
| obj | Pointer to the object being inserted. |
| ctx | Event context for the current thread. |
obj must point to an object of type T. This will give an error if this is not called on the most-derived CondCont.
Returns SUCCESS if the object was successfully inserted; OVERLAP if the object was inserted but the range partially overlaps with an existing one; DUPLICATE if the object wasn't inserted because the range duplicates an existing one, and FAILURE otherwise (ownership of the object will be taken in any case).
|
delete |
|
static |
Helper to ensure that the inheritance information for this class gets initialized.
1.8.18