Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
12 #ifndef STOREGATE_SG_WRITEHANDLE_H
13 #define STOREGATE_SG_WRITEHANDLE_H 1
19 #include "GaudiKernel/EventContext.h"
109 const EventContext& ctx);
119 const std::string& storename,
120 const EventContext& ctx);
150 const EventContext& ctx) =
delete;
256 std::unique_ptr<AUXSTORE>
store);
266 std::unique_ptr<AUXSTORE>
store);
302 bool returnExisting = false)
const;
320 bool returnExisting = false)
const;
338 bool returnExisting = false)
const;
358 bool returnExisting = false)
const;
377 std::unique_ptr<T>
data,
378 bool returnExisting = false)
const;
398 bool returnExisting = false)
const;
449 std::unique_ptr<AUXSTORE> auxstore)
const;
471 std::unique_ptr<
const AUXSTORE> auxstore)
const;
491 std::unique_ptr<T>
data,
492 std::unique_ptr<AUXSTORE> auxstore)
const;
516 std::unique_ptr<
const AUXSTORE> auxstore)
const;
589 bool returnExisting);
632 std::unique_ptr<T>
data,
633 std::unique_ptr<AUXSTORE> auxstore)
const;
654 std::unique_ptr<
const AUXSTORE> auxstore)
const;
666 std::unique_ptr<AUXSTORE> auxstore,
713 const EventContext& ctx);
719 #include "StoreGate/WriteHandle.icc"
722 #ifndef NO_LEGACY_HANDLES
728 #endif //> !STOREGATE_SG_WRITEHANDLE_H
Base class for VarHandle classes.
char data[hepevt_bytes_allocation_ATLAS]
WriteHandle & operator=(const WriteHandle &rhs)
Assignment operator.
WriteHandle(const std::string &sgkey, const EventContext &ctx)
Constructor specifying the key as a string, with context.
Base class for VarHandle types.
StatusCode symLink(const WriteHandleKey< U > &key)
Make an explicit link.
A smart pointer to an object of a given type in an IProxyDict (such as StoreGateSvc)....
StatusCode alias(const WriteHandleKey< T > &key)
Make an alias.
const_pointer_type cptr() const
Dereference the pointer.
bool const RAWDATA *ch2 const
WriteHandle(WriteHandle &&rhs)
Move constructor.
WriteHandle(const WriteHandle &rhs)
Copy constructor.
WriteHandle(SG::WriteHandleKey< T > &&key, const EventContext &ctx)=delete
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
WriteHandle & operator=(WriteHandle &&rhs)
Move operator.
WriteHandle(const WriteHandleKey< T > &key, const EventContext &ctx)
Constructor from a WriteHandleKey and an explicit event context.
WriteHandle(SG::WriteHandleKey< T > &&key)=delete
pointer_type cachedPtr()
Return the cached pointer directly; no lookup.
Property holding a SG store/key/clid from which a WriteHandle is made.
WriteHandle(const WriteHandleKey< T > &key)
Constructor from a WriteHandleKey.
StatusCode recordNonConst(std::unique_ptr< T > data)
Record a non-const object to the store.
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
std::string store() const
Return the name of the store holding the object we are proxying.
reference_type operator*()
Dereference the pointer.
WriteHandle(const std::string &sgkey, const std::string &storename=StoreID::storeName(StoreID::EVENT_STORE))
Constructor specifying the key as a string.
Property holding a SG store/key/clid from which a WriteHandle is made.
const T * const_pointer_type
~WriteHandle()
Destructor.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
WriteHandle(const std::string &sgkey, const std::string &storename, const EventContext &ctx)
Constructor specifying the key as a string, with context.
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
pointer_type operator->()
Dereference the pointer.
pointer_type checkedCachedPtr()
Return the cached pointer directly.
const T & const_reference_type
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
DataVector adapter that acts like it holds const pointers.
const_pointer_type doPut(const EventContext *ctx, U data, bool returnExisting, IProxyDict *&store) const
Helper for put.
bool isConst() const
True if this handle has a proxy, and the proxy is const.
const_pointer_type put(std::unique_ptr< T > data, bool returnExisting=false) const
Record an object to the store.
Smart pointer to manage DataObject reference counts.
StatusCode doRecord(U data, bool isConst, bool returnExisting)
Helper for record.
WriteHandle()
Default constructor.
SG::DataProxy * m_lockAuxPending
If non-null, then we need to lock the associated aux store object when we're deleted.
static const std::string & storeName(const StoreID::type &s)