ATLAS Offline Software
TypelessWriteHandle.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 /*
3  * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
4  */
13 #ifndef STOREGATE_TYPELESSWRITEHANDLE_H
14 #define STOREGATE_TYPELESSWRITEHANDLE_H
15 
16 
19 
20 
21 namespace SG {
22 
23 
34  : public SG::VarHandleBase
35 {
36 public:
49  const EventContext& ctx);
50 
51 
57  virtual bool isValid() override final;
58 
59 
67  StatusCode typelessPut (std::unique_ptr<DataObject> data) const;
68 };
69 
70 
71 } // namespace SG
72 
73 
74 #endif // not STOREGATE_TYPELESSWRITEHANDLE_H
VarHandleBase.h
Base class for VarHandle classes.
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
SG::VarHandleBase
Base class for VarHandle types.
Definition: StoreGate/StoreGate/VarHandleBase.h:83
SG::TypelessWriteHandleKey
Property holding a write key for which the type can be configured.
Definition: TypelessWriteHandleKey.h:35
SG::TypelessWriteHandle
Handle allowing writes to the event store with a configurable type.
Definition: TypelessWriteHandle.h:35
SG::TypelessWriteHandle::typelessPut
StatusCode typelessPut(std::unique_ptr< DataObject > data) const
Record an object in the store.
Definition: TypelessWriteHandle.cxx:55
SG::TypelessWriteHandle::isValid
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Definition: TypelessWriteHandle.cxx:41
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SG::TypelessWriteHandle::TypelessWriteHandle
TypelessWriteHandle(const TypelessWriteHandleKey &key, const EventContext &ctx)
Constructor from a TypelessWriteHandleKey and an explicit event context.
Definition: TypelessWriteHandle.cxx:29
SG::VarHandleBase::key
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleBase.cxx:64
TypelessWriteHandleKey.h
Property holding a write key for which the type can be configured.