ATLAS Offline Software
Database
AthenaPOOL
AthenaPoolUtilities
AthenaPoolUtilities
CondAttrListVecAddress.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 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
17
// Forward declarations
18
class
IRegistry;
19
25
class
CondAttrListVecAddress
:
public
GenericAddress {
26
public
:
28
CondAttrListVecAddress
();
30
CondAttrListVecAddress
(
const
CondAttrListVecAddress
&
copy
);
32
// not allowed with new Gaudi
33
CondAttrListVecAddress
&
operator=
(
const
CondAttrListVecAddress
&
copy
) =
delete
;
35
CondAttrListVecAddress
(
const
GenericAddress&
copy
);
37
CondAttrListVecAddress
(
long
svc
,
38
const
CLID
& clid,
39
const
std::string&
p1
=
""
,
40
const
std::string&
p2
=
""
,
41
unsigned
long
ip1=0,
42
unsigned
long
ip2=0,
43
CondAttrListVec
*
attrListVec
=0);
44
46
virtual
~CondAttrListVecAddress
();
47
49
CondAttrListVec
*
attrListVec
();
50
52
void
setAttrListVec
(
CondAttrListVec
*
attrListVec
);
53
54
private
:
55
57
CondAttrListVec
*
m_attrListVec
;
58
};
59
61
inline
62
CondAttrListVecAddress::CondAttrListVecAddress
()
63
:
64
GenericAddress(),
65
m_attrListVec(0)
66
{}
67
68
inline
69
CondAttrListVecAddress::CondAttrListVecAddress
(
const
CondAttrListVecAddress
&
copy
)
70
:
71
GenericAddress(
copy
),
72
m_attrListVec(
copy
.m_attrListVec)
73
{
74
if
(
m_attrListVec
)
m_attrListVec
->addRef();
75
}
76
77
// not allowed with new Gaudi
78
// inline
79
// CondAttrListVecAddress&
80
// CondAttrListVecAddress::operator=(const CondAttrListVecAddress& copy)
81
// {
82
// if (this != ©) {
83
// GenericAddress::operator= (copy);
84
// if (m_attrListVec) m_attrListVec->release();
85
// m_attrListVec = copy.m_attrListVec;
86
// if (m_attrListVec) m_attrListVec->addRef();
87
// }
88
// return *this;
89
// }
90
91
inline
92
CondAttrListVecAddress::CondAttrListVecAddress
(
const
GenericAddress&
copy
)
93
:
94
GenericAddress(
copy
),
95
m_attrListVec(0)
96
{}
97
98
inline
99
CondAttrListVecAddress::CondAttrListVecAddress
(
long
svc
,
100
const
CLID
& clid,
101
const
std::string&
p1
,
102
const
std::string&
p2
,
103
unsigned
long
ip1,
104
unsigned
long
ip2,
105
CondAttrListVec
* attrListVec)
106
:
107
GenericAddress(
svc
, clid,
p1
,
p2
, ip1, ip2),
108
m_attrListVec(attrListVec)
109
{
110
if
(
m_attrListVec
)
m_attrListVec
->addRef();
111
}
112
113
inline
114
CondAttrListVecAddress::~CondAttrListVecAddress
()
115
{
116
if
(
m_attrListVec
)
m_attrListVec
->release();
117
}
118
119
inline
CondAttrListVec
*
120
CondAttrListVecAddress::attrListVec
()
121
{
122
return
m_attrListVec
;
123
}
124
125
inline
void
126
CondAttrListVecAddress::setAttrListVec
(
CondAttrListVec
* attrListVec)
127
{
128
if
(
m_attrListVec
)
m_attrListVec
->release();
129
m_attrListVec
=
attrListVec
;
130
if
(
m_attrListVec
)
m_attrListVec
->addRef();
131
}
132
133
#endif // ATHENAPOOLCNVSVC_CONDATTRLISTVECADDRESS_H
134
CondAttrListVecAddress::~CondAttrListVecAddress
virtual ~CondAttrListVecAddress()
Standard Destructor.
Definition:
CondAttrListVecAddress.h:114
TRTCalib_cfilter.p1
p1
Definition:
TRTCalib_cfilter.py:130
CondAttrListVecAddress::m_attrListVec
CondAttrListVec * m_attrListVec
Pointer to a CondAttrListVec.
Definition:
CondAttrListVecAddress.h:57
TRTCalib_cfilter.p2
p2
Definition:
TRTCalib_cfilter.py:131
CondAttrListVecAddress::attrListVec
CondAttrListVec * attrListVec()
Access to CondAttrListVec.
Definition:
CondAttrListVecAddress.h:120
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 the an IOpaqueAddress/GenericAddress which can hold a pointer to an AthenaAttribu...
Definition:
CondAttrListVecAddress.h:25
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:126
CondAttrListVecAddress::CondAttrListVecAddress
CondAttrListVecAddress()
Dummy constructor.
Definition:
CondAttrListVecAddress.h:62
calibdata.copy
bool copy
Definition:
calibdata.py:27
CondAttrListVecAddress::operator=
CondAttrListVecAddress & operator=(const CondAttrListVecAddress ©)=delete
Assignment.
Generated on Sun Dec 22 2024 21:08:30 for ATLAS Offline Software by
1.8.18