|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #ifndef STOREGATE_SG_WRITEHANDLE_H
16 #define STOREGATE_SG_WRITEHANDLE_H 1
22 #include "GaudiKernel/EventContext.h"
233 std::unique_ptr<AUXSTORE>
store);
243 std::unique_ptr<AUXSTORE>
store);
279 bool returnExisting = false)
const;
297 bool returnExisting = false)
const;
315 bool returnExisting = false)
const;
335 bool returnExisting = false)
const;
354 std::unique_ptr<T>
data,
355 bool returnExisting = false)
const;
375 bool returnExisting = false)
const;
426 std::unique_ptr<AUXSTORE> auxstore)
const;
448 std::unique_ptr<
const AUXSTORE> auxstore)
const;
468 std::unique_ptr<T>
data,
469 std::unique_ptr<AUXSTORE> auxstore)
const;
493 std::unique_ptr<
const AUXSTORE> auxstore)
const;
566 bool returnExisting);
609 std::unique_ptr<T>
data,
610 std::unique_ptr<AUXSTORE> auxstore)
const;
631 std::unique_ptr<
const AUXSTORE> auxstore)
const;
643 std::unique_ptr<AUXSTORE> auxstore,
690 const EventContext& ctx);
696 #include "StoreGate/WriteHandle.icc"
699 #ifndef NO_LEGACY_HANDLES
705 #endif //> !STOREGATE_SG_WRITEHANDLE_H
Base class for VarHandle classes.
char data[hepevt_bytes_allocation_ATLAS]
WriteHandle & operator=(const WriteHandle &rhs)
Assignment operator.
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.
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.
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 with full arguments.
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?
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)