ATLAS Offline Software
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
7 
13 // AthenaAttrList
15 
16 // Framework include files
17 #include "GaudiKernel/GenericAddress.h"
18 
24 class CondAttrListCollAddress : public GenericAddress {
25 public:
33  explicit CondAttrListCollAddress(const GenericAddress& copy);
36  const CLID& clid,
37  const std::string& p1="",
38  const std::string& p2="",
39  unsigned long ip1=0,
40  unsigned long ip2=0,
42 
44  virtual ~CondAttrListCollAddress();
45 
48 
51 
52 private:
53 
56 };
57 
59 inline
61  :
62  GenericAddress(),
63  m_attrListColl(nullptr)
64 {}
65 
66 inline
68  :
69  GenericAddress(copy),
70  m_attrListColl(copy.m_attrListColl)
71 {
72  if (m_attrListColl) m_attrListColl->addRef();
73 }
74 
75 inline
78 {
79  if (this != &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
90  :
91  GenericAddress(copy),
92  m_attrListColl(nullptr)
93 {}
94 
95 inline
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
112 {
113  if (m_attrListColl) m_attrListColl->release();
114 }
115 
118 {
119  return m_attrListColl;
120 }
121 
122 inline void
124 {
125  if (m_attrListColl) m_attrListColl->release();
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...
CondAttrListCollAddress::operator=
CondAttrListCollAddress & operator=(const CondAttrListCollAddress &copy)
Assignment.
Definition: CondAttrListCollAddress.h:77
TRTCalib_cfilter.p1
p1
Definition: TRTCalib_cfilter.py:130
columnar::operator=
AccessorTemplate & operator=(AccessorTemplate &&that)
Definition: VectorColumn.h:88
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:51
CondAttrListCollAddress
This class provides an IOpaqueAddress/GenericAddress which can hold a pointer to a CondAttrListCollec...
Definition: CondAttrListCollAddress.h:24
CondAttrListCollAddress::m_attrListColl
CondAttrListCollection * m_attrListColl
Pointer to an CondAttrListCollection.
Definition: CondAttrListCollAddress.h:55
TRTCalib_cfilter.p2
p2
Definition: TRTCalib_cfilter.py:131
CondAttrListCollAddress::setAttrListColl
void setAttrListColl(CondAttrListCollection *attrListColl)
Add AttributeList.
Definition: CondAttrListCollAddress.h:123
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
CondAttrListCollAddress::~CondAttrListCollAddress
virtual ~CondAttrListCollAddress()
Standard Destructor.
Definition: CondAttrListCollAddress.h:111
CondAttrListCollAddress::attrListColl
CondAttrListCollection * attrListColl()
Access to AttributeList.
Definition: CondAttrListCollAddress.h:117
calibdata.copy
bool copy
Definition: calibdata.py:26
CondAttrListCollAddress::CondAttrListCollAddress
CondAttrListCollAddress()
Dummy constructor.
Definition: CondAttrListCollAddress.h:60