ATLAS Offline Software
Loading...
Searching...
No Matches
Database
AthenaPOOL
AthenaPoolUtilities
AthenaPoolUtilities
CondAttrListCollAddress.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_CONDATTRLISTCOLLADDRESS_H
6
#define ATHENAPOOLCNVSVC_CONDATTRLISTCOLLADDRESS_H
12
13
// AthenaAttrList
14
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
15
16
// Framework include files
17
#include "GaudiKernel/GenericAddress.h"
18
24
class
CondAttrListCollAddress
:
public
GenericAddress {
25
public
:
27
CondAttrListCollAddress
();
29
CondAttrListCollAddress
(
const
CondAttrListCollAddress
& copy);
31
CondAttrListCollAddress
&
operator=
(
const
CondAttrListCollAddress
& copy);
33
explicit
CondAttrListCollAddress
(
const
GenericAddress& copy);
35
CondAttrListCollAddress
(
long
svc,
36
const
CLID
& clid,
37
const
std::string& p1=
""
,
38
const
std::string& p2=
""
,
39
unsigned
long
ip1=0,
40
unsigned
long
ip2=0,
41
CondAttrListCollection
*
attrListColl
=
nullptr
);
42
44
virtual
~CondAttrListCollAddress
();
45
47
CondAttrListCollection
*
attrListColl
();
48
50
void
setAttrListColl
(
CondAttrListCollection
*
attrListColl
);
51
52
private
:
53
55
CondAttrListCollection
*
m_attrListColl
;
56
};
57
59
inline
60
CondAttrListCollAddress::CondAttrListCollAddress
()
61
:
62
GenericAddress(),
63
m_attrListColl
(nullptr)
64
{}
65
66
inline
67
CondAttrListCollAddress::CondAttrListCollAddress
(
const
CondAttrListCollAddress
& copy)
68
:
69
GenericAddress(copy),
70
m_attrListColl
(copy.
m_attrListColl
)
71
{
72
if
(
m_attrListColl
)
m_attrListColl
->addRef();
73
}
74
75
inline
76
CondAttrListCollAddress
&
77
CondAttrListCollAddress::operator=
(
const
CondAttrListCollAddress
& copy)
78
{
79
if
(
this
!= ©) {
80
GenericAddress::operator= (copy);
81
if
(
m_attrListColl
)
m_attrListColl
->release();
82
m_attrListColl
= copy.m_attrListColl;
83
if
(
m_attrListColl
)
m_attrListColl
->addRef();
84
}
85
return
*
this
;
86
}
87
88
inline
89
CondAttrListCollAddress::CondAttrListCollAddress
(
const
GenericAddress& copy)
90
:
91
GenericAddress(copy),
92
m_attrListColl
(nullptr)
93
{}
94
95
inline
96
CondAttrListCollAddress::CondAttrListCollAddress
(
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
CondAttrListCollection
*
attrListColl
)
103
:
104
GenericAddress( svc, clid, p1, p2, ip1, ip2),
105
m_attrListColl
(
attrListColl
)
106
{
107
if
(
m_attrListColl
)
m_attrListColl
->addRef();
108
}
109
110
inline
111
CondAttrListCollAddress::~CondAttrListCollAddress
()
112
{
113
if
(
m_attrListColl
)
m_attrListColl
->release();
114
}
115
116
inline
CondAttrListCollection
*
117
CondAttrListCollAddress::attrListColl
()
118
{
119
return
m_attrListColl
;
120
}
121
122
inline
void
123
CondAttrListCollAddress::setAttrListColl
(
CondAttrListCollection
*
attrListColl
)
124
{
125
if
(
m_attrListColl
)
m_attrListColl
->release();
126
m_attrListColl
=
attrListColl
;
127
if
(
m_attrListColl
)
m_attrListColl
->addRef();
128
}
129
130
#endif
// ATHENAPOOLCNVSVC_CONDATTRLISTCOLLADDRESS_H
131
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
CLID
uint32_t CLID
The Class ID type.
Definition
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
CondAttrListCollAddress
This class provides an IOpaqueAddress/GenericAddress which can hold a pointer to a CondAttrListCollec...
Definition
CondAttrListCollAddress.h:24
CondAttrListCollAddress::operator=
CondAttrListCollAddress & operator=(const CondAttrListCollAddress ©)
Assignment.
Definition
CondAttrListCollAddress.h:77
CondAttrListCollAddress::CondAttrListCollAddress
CondAttrListCollAddress()
Dummy constructor.
Definition
CondAttrListCollAddress.h:60
CondAttrListCollAddress::attrListColl
CondAttrListCollection * attrListColl()
Access to AttributeList.
Definition
CondAttrListCollAddress.h:117
CondAttrListCollAddress::m_attrListColl
CondAttrListCollection * m_attrListColl
Pointer to an CondAttrListCollection.
Definition
CondAttrListCollAddress.h:55
CondAttrListCollAddress::~CondAttrListCollAddress
virtual ~CondAttrListCollAddress()
Standard Destructor.
Definition
CondAttrListCollAddress.h:111
CondAttrListCollAddress::setAttrListColl
void setAttrListColl(CondAttrListCollection *attrListColl)
Add AttributeList.
Definition
CondAttrListCollAddress.h:123
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number.
Definition
CondAttrListCollection.h:51
Generated on
for ATLAS Offline Software by
1.14.0