|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #ifndef STOREGATE_SG_UPDATEHANDLE_H
16 #define STOREGATE_SG_UPDATEHANDLE_H 1
22 #include "GaudiKernel/EventContext.h"
34 template <
class T,
class VALT>
37 typedef std::false_type
type;
42 typedef std::true_type
type;
105 "Use of UpdateHandle is restricted to a few explicitly thread-safe types. If you think you need to use UpdateHandle, please consult with the core and reconstruction groups.");
242 virtual
void reset (
bool hard) override;
278 const EventContext& ctx);
284 #include "StoreGate/UpdateHandle.icc"
287 #ifndef NO_LEGACY_HANDLES
294 #endif //> !STOREGATE_SG_UPDATEHANDLE_H
Base class for VarHandle classes.
UpdateHandle & operator=(const UpdateHandle &rhs)
Assignment operator.
Property holding a SG store/key/clid from which an UpdateHandle is made.
Base class for VarHandle types.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
pointer_type operator->()
Dereference the pointer.
const T * const_pointer_type
bool const RAWDATA *ch2 const
UpdateHandle(const UpdateHandleKey< T > &key)
Constructor from an UpdateHandleKey.
pointer_type ptr()
Dereference the pointer.
UpdateHandle()
Default constructor.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
a resetable object (e.g. a SG DataHandle)
reference_type operator*()
Dereference the pointer.
virtual void reset(bool hard) override
Reset this handle.
pointer_type cachedPtr()
Return the cached pointer directly; no lookup.
UpdateHandle(const UpdateHandle &rhs)
Copy constructor.
UpdateHandle(UpdateHandle &&rhs)
Move constructor.
const T & const_reference_type
Property holding a SG store/key/clid from which an UpdateHandle is made.
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
UpdateHandle(const UpdateHandleKey< T > &key, const EventContext &ctx)
Constructor from an UpdateHandleKey and an explicit event context.
pointer_type checkedPtr()
Helper: dereference the pointer.
UpdateHandle & operator=(UpdateHandle &&rhs)
Move operator.
a smart pointer to an object of a given type in an IProxyDict (such as StoreGateSvc)....
static const std::string & storeName(const StoreID::type &s)
const_pointer_type cptr()
Dereference the pointer.
UpdateHandle(const std::string &sgkey, const std::string &storename=StoreID::storeName(StoreID::EVENT_STORE))
Constructor with full arguments.