ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
StoreGate
StoreGate
StoreGate/StoreGate/WriteHandleKey.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
/*
4
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5
*/
6
13
14
15
#ifndef STOREGATE_WRITEHANDLEKEY_H
16
#define STOREGATE_WRITEHANDLEKEY_H
17
18
19
#include "
StoreGate/VarHandleKey.h
"
20
#include "
AthenaKernel/CLASS_DEF.h
"
21
#include <concepts>
22
23
24
namespace
SG
{
25
26
37
template
<
class
T>
38
class
WriteHandleKey
39
:
public
VarHandleKey
40
{
41
public
:
51
explicit
52
WriteHandleKey
(
const
std::string&
key
=
""
,
53
const
std::string& storeName =
StoreID::storeName
(
StoreID::EVENT_STORE
));
54
55
69
template
<std::derived_from<IProperty> OWNER>
70
inline
WriteHandleKey
(OWNER* owner,
71
std::string name,
72
const
std::string&
key
={},
73
std::string doc=
""
);
74
75
84
WriteHandleKey
&
operator=
(
const
std::string& sgkey);
85
};
86
87
88
}
// namespace SG
89
90
91
#include "
StoreGate/WriteHandleKey.icc
"
92
93
94
#endif
// not STOREGATE_WRITEHANDLEKEY_H
CLASS_DEF.h
macros to associate a CLID to a type
VarHandleKey.h
A property holding a SG store/key/clid from which a VarHandle is made.
WriteHandleKey.icc
SG::WriteHandleKey< xAOD::CaloClusterContainer >::key
const std::string & key() const
Definition
AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
SG::VarHandleKey::VarHandleKey
VarHandleKey(CLID clid, const std::string &sgkey, Gaudi::DataHandle::Mode a, const std::string &storeName=StoreID::storeName(StoreID::EVENT_STORE), bool isCond=false)
Constructor.
Definition
AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:38
SG::WriteHandleKey::operator=
WriteHandleKey & operator=(const std::string &sgkey)
Change the key of the object to which we're referring.
SG::WriteHandleKey::WriteHandleKey
WriteHandleKey(const std::string &key="", const std::string &storeName=StoreID::storeName(StoreID::EVENT_STORE))
Constructor.
SG::WriteHandleKey::WriteHandleKey
WriteHandleKey(OWNER *owner, std::string name, const std::string &key={}, std::string doc="")
auto-declaring Property Constructor.
StoreID::EVENT_STORE
@ EVENT_STORE
Definition
StoreID.h:26
StoreID::storeName
static const std::string & storeName(const StoreID::type &s)
Definition
StoreID.cxx:77
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
Generated on
for ATLAS Offline Software by
1.17.0