ATLAS Offline Software
Database
AthenaPOOL
AthenaPoolUtilities
AthenaPoolUtilities
CondAttrListVecAddress.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ATHENAPOOLCNVSVC_CONDATTRLISTVECADDRESS_H
6
#define ATHENAPOOLCNVSVC_CONDATTRLISTVECADDRESS_H
7
12
#include "
AthenaPoolUtilities/CondAttrListVec.h
"
13
14
// Framework include files
15
#include "GaudiKernel/GenericAddress.h"
16
22
class
CondAttrListVecAddress
:
public
GenericAddress {
23
public
:
25
CondAttrListVecAddress
();
27
CondAttrListVecAddress
(
const
CondAttrListVecAddress
&
copy
);
29
// not allowed with new Gaudi
30
CondAttrListVecAddress
&
operator=
(
const
CondAttrListVecAddress
&
copy
) =
delete
;
32
explicit
CondAttrListVecAddress
(
const
GenericAddress&
copy
);
34
CondAttrListVecAddress
(
long
svc
,
35
const
CLID
& clid,
36
const
std::string&
p1
=
""
,
37
const
std::string&
p2
=
""
,
38
unsigned
long
ip1=0,
39
unsigned
long
ip2=0,
40
CondAttrListVec
*
attrListVec
=
nullptr
);
41
43
virtual
~CondAttrListVecAddress
();
44
46
CondAttrListVec
*
attrListVec
();
47
49
void
setAttrListVec
(
CondAttrListVec
*
attrListVec
);
50
51
private
:
52
54
CondAttrListVec
*
m_attrListVec
;
55
};
56
58
inline
59
CondAttrListVecAddress::CondAttrListVecAddress
()
60
:
61
GenericAddress(),
62
m_attrListVec(nullptr)
63
{}
64
65
inline
66
CondAttrListVecAddress::CondAttrListVecAddress
(
const
CondAttrListVecAddress
&
copy
)
67
:
68
GenericAddress(
copy
),
69
m_attrListVec(
copy
.m_attrListVec)
70
{
71
if
(
m_attrListVec
)
m_attrListVec
->addRef();
72
}
73
74
// not allowed with new Gaudi
75
// inline
76
// CondAttrListVecAddress&
77
// CondAttrListVecAddress::operator=(const CondAttrListVecAddress& copy)
78
// {
79
// if (this != ©) {
80
// GenericAddress::operator= (copy);
81
// if (m_attrListVec) m_attrListVec->release();
82
// m_attrListVec = copy.m_attrListVec;
83
// if (m_attrListVec) m_attrListVec->addRef();
84
// }
85
// return *this;
86
// }
87
88
inline
89
CondAttrListVecAddress::CondAttrListVecAddress
(
const
GenericAddress&
copy
)
90
:
91
GenericAddress(
copy
),
92
m_attrListVec(nullptr)
93
{}
94
95
inline
96
CondAttrListVecAddress::CondAttrListVecAddress
(
long
svc
,
97
const
CLID
& clid,
98
const
std::string&
p1
,
99
const
std::string&
p2
,
100
unsigned
long
ip1,
101
unsigned
long
ip2,
102
CondAttrListVec
* attrListVec)
103
:
104
GenericAddress(
svc
, clid,
p1
,
p2
, ip1, ip2),
105
m_attrListVec(attrListVec)
106
{
107
if
(
m_attrListVec
)
m_attrListVec
->addRef();
108
}
109
110
inline
111
CondAttrListVecAddress::~CondAttrListVecAddress
()
112
{
113
if
(
m_attrListVec
)
m_attrListVec
->release();
114
}
115
116
inline
CondAttrListVec
*
117
CondAttrListVecAddress::attrListVec
()
118
{
119
return
m_attrListVec
;
120
}
121
122
inline
void
123
CondAttrListVecAddress::setAttrListVec
(
CondAttrListVec
* attrListVec)
124
{
125
if
(
m_attrListVec
)
m_attrListVec
->release();
126
m_attrListVec
=
attrListVec
;
127
if
(
m_attrListVec
)
m_attrListVec
->addRef();
128
}
129
130
#endif // ATHENAPOOLCNVSVC_CONDATTRLISTVECADDRESS_H
131
CondAttrListVecAddress::~CondAttrListVecAddress
virtual ~CondAttrListVecAddress()
Standard Destructor.
Definition:
CondAttrListVecAddress.h:111
TRTCalib_cfilter.p1
p1
Definition:
TRTCalib_cfilter.py:130
CondAttrListVecAddress::m_attrListVec
CondAttrListVec * m_attrListVec
Pointer to a CondAttrListVec.
Definition:
CondAttrListVecAddress.h:54
TRTCalib_cfilter.p2
p2
Definition:
TRTCalib_cfilter.py:131
CondAttrListVecAddress::attrListVec
CondAttrListVec * attrListVec()
Access to CondAttrListVec.
Definition:
CondAttrListVecAddress.h:117
CondAttrListVec.h
A CondAttrListVec is an Athena DataObject holding a vector of CORAL AttributeLists,...
CondAttrListVec
Definition:
CondAttrListVec.h:31
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition:
AthROOTErrorHandlerSvc.cxx:10
CondAttrListVecAddress
This class provides an IOpaqueAddress/GenericAddress which can hold a pointer to a CondAttrListVec ob...
Definition:
CondAttrListVecAddress.h:22
CLID
uint32_t CLID
The Class ID type.
Definition:
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
CondAttrListVecAddress::setAttrListVec
void setAttrListVec(CondAttrListVec *attrListVec)
Add CondAttrListVec.
Definition:
CondAttrListVecAddress.h:123
CondAttrListVecAddress::CondAttrListVecAddress
CondAttrListVecAddress()
Dummy constructor.
Definition:
CondAttrListVecAddress.h:59
calibdata.copy
bool copy
Definition:
calibdata.py:26
CondAttrListVecAddress::operator=
CondAttrListVecAddress & operator=(const CondAttrListVecAddress ©)=delete
Assignment.
Generated on Sat Nov 1 2025 21:08:01 for ATLAS Offline Software by
1.8.18