![]() |
ATLAS Offline Software
|
#include <WriteCondHandle.h>
Public Types | |
typedef T * | pointer_type |
typedef const T * | const_pointer_type |
typedef T & | reference_type |
typedef const T & | const_reference_type |
Public Member Functions | |
WriteCondHandle (const WriteCondHandleKey< T > &key) | |
WriteCondHandle (const WriteCondHandleKey< T > &key, const EventContext &ctx) | |
WriteCondHandle (SG::WriteCondHandleKey< T > &&key)=delete | |
WriteCondHandle (SG::WriteCondHandleKey< T > &&key, const EventContext &ctx)=delete | |
~WriteCondHandle () | |
const std::string & | key () const |
const DataObjID & | fullKey () const |
bool | isValid () const |
bool | isValid (const EventIDBase &t) const |
bool | isValid (EventIDRange &range) const |
bool | isValid (const EventIDBase &t, EventIDRange &range) const |
void | addDependency (const EventIDRange &range) |
template<typename R > | |
void | addDependency (SG::ReadCondHandle< R > &rch) |
template<typename R , typename... Args> | |
void | addDependency (ReadCondHandle< R > &rch, Args... args) |
StatusCode | record (const EventIDRange &range, T *t) |
record handle, with explicit range DEPRECATED More... | |
StatusCode | record (const EventIDRange &range, std::unique_ptr< T > t) |
StatusCode | record (std::unique_ptr< T > t) |
record handle, range must have been set by addDependency(...) More... | |
StatusCode | record (T *t) |
StatusCode | extendLastRange (const EventIDRange &range, const EventContext &ctx=Gaudi::Hive::currentContext()) |
Extend the range of the last IOV. More... | |
const std::string & | dbKey () const |
const EventIDRange & | getRange () const |
Private Attributes | |
const EventContext & | m_ctx |
CondCont< T > * | m_cc {nullptr} |
const SG::WriteCondHandleKey< T > & | m_hkey |
EventIDRange | m_range {} |
bool | m_rangeSet {false} |
Definition at line 26 of file WriteCondHandle.h.
typedef const T* SG::WriteCondHandle< T >::const_pointer_type |
Definition at line 30 of file WriteCondHandle.h.
typedef const T& SG::WriteCondHandle< T >::const_reference_type |
Definition at line 32 of file WriteCondHandle.h.
typedef T* SG::WriteCondHandle< T >::pointer_type |
Definition at line 29 of file WriteCondHandle.h.
typedef T& SG::WriteCondHandle< T >::reference_type |
Definition at line 31 of file WriteCondHandle.h.
SG::WriteCondHandle< T >::WriteCondHandle | ( | const WriteCondHandleKey< T > & | key | ) |
Definition at line 109 of file WriteCondHandle.h.
SG::WriteCondHandle< T >::WriteCondHandle | ( | const WriteCondHandleKey< T > & | key, |
const EventContext & | ctx | ||
) |
Definition at line 115 of file WriteCondHandle.h.
|
delete |
|
delete |
|
inline |
Definition at line 42 of file WriteCondHandle.h.
void SG::WriteCondHandle< T >::addDependency | ( | const EventIDRange & | range | ) |
Definition at line 279 of file WriteCondHandle.h.
void SG::WriteCondHandle< T >::addDependency | ( | ReadCondHandle< R > & | rch, |
Args... | args | ||
) |
Definition at line 310 of file WriteCondHandle.h.
void SG::WriteCondHandle< T >::addDependency | ( | SG::ReadCondHandle< R > & | rch | ) |
Definition at line 301 of file WriteCondHandle.h.
|
inline |
Definition at line 91 of file WriteCondHandle.h.
StatusCode SG::WriteCondHandle< T >::extendLastRange | ( | const EventIDRange & | r, |
const EventContext & | ctx = Gaudi::Hive::currentContext() |
||
) |
Extend the range of the last IOV.
range | New validity range. |
ctx | Event context. |
Returns failure if the start time of range
does not match the start time of the last IOV in the container. Otherwise, the end time for the last IOV is changed to the end time for range
. (If the end time for range
is before the end of the last IOV, then nothing is changed.)
Definition at line 232 of file WriteCondHandle.h.
|
inline |
Definition at line 45 of file WriteCondHandle.h.
|
inline |
Definition at line 93 of file WriteCondHandle.h.
bool SG::WriteCondHandle< T >::isValid |
Definition at line 252 of file WriteCondHandle.h.
bool SG::WriteCondHandle< T >::isValid | ( | const EventIDBase & | t | ) | const |
Definition at line 242 of file WriteCondHandle.h.
bool SG::WriteCondHandle< T >::isValid | ( | const EventIDBase & | t, |
EventIDRange & | range | ||
) | const |
Definition at line 261 of file WriteCondHandle.h.
bool SG::WriteCondHandle< T >::isValid | ( | EventIDRange & | range | ) | const |
Definition at line 271 of file WriteCondHandle.h.
|
inline |
Definition at line 44 of file WriteCondHandle.h.
StatusCode SG::WriteCondHandle< T >::record | ( | const EventIDRange & | range, |
std::unique_ptr< T > | t | ||
) |
Definition at line 140 of file WriteCondHandle.h.
StatusCode SG::WriteCondHandle< T >::record | ( | const EventIDRange & | range, |
T * | t | ||
) |
StatusCode SG::WriteCondHandle< T >::record | ( | std::unique_ptr< T > | t | ) |
record handle, range must have been set by addDependency(...)
t | unique_ptr to handle |
Definition at line 174 of file WriteCondHandle.h.
StatusCode SG::WriteCondHandle< T >::record | ( | T * | t | ) |
Definition at line 168 of file WriteCondHandle.h.
|
private |
Definition at line 98 of file WriteCondHandle.h.
|
private |
Definition at line 97 of file WriteCondHandle.h.
|
private |
Definition at line 100 of file WriteCondHandle.h.
|
private |
Definition at line 102 of file WriteCondHandle.h.
|
private |
Definition at line 103 of file WriteCondHandle.h.