ATLAS Offline Software
CondAttrListCollAddress.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_CONDATTRLISTCOLLADDRESS_H
6 #define ATHENAPOOLCNVSVC_CONDATTRLISTCOLLADDRESS_H
7 
13 // AthenaAttrList
15 
16 // Framework include files
17 #include "GaudiKernel/GenericAddress.h"
18 
19 // Forward declarations
20 class IRegistry;
21 
27 class CondAttrListCollAddress : public GenericAddress {
28 public:
36  CondAttrListCollAddress(const GenericAddress& copy);
39  const CLID& clid,
40  const std::string& p1="",
41  const std::string& p2="",
42  unsigned long ip1=0,
43  unsigned long ip2=0,
45 
47  virtual ~CondAttrListCollAddress();
48 
51 
54 
55 private:
56 
59 };
60 
62 inline
64  :
65  GenericAddress(),
66  m_attrListColl(0)
67 {}
68 
69 inline
71  :
72  GenericAddress(copy),
73  m_attrListColl(copy.m_attrListColl)
74 {
75  if (m_attrListColl) m_attrListColl->addRef();
76 }
77 
78 inline
81 {
82  if (this != &copy) {
83  GenericAddress::operator= (copy);
84  if (m_attrListColl) m_attrListColl->release();
85  m_attrListColl = copy.m_attrListColl;
86  if (m_attrListColl) m_attrListColl->addRef();
87  }
88  return *this;
89 }
90 
91 inline
93  :
94  GenericAddress(copy),
95  m_attrListColl(0)
96 {}
97 
98 inline
100  const CLID& clid,
101  const std::string& p1,
102  const std::string& p2,
103  unsigned long ip1,
104  unsigned long ip2,
105  CondAttrListCollection* attrListColl)
106  :
107  GenericAddress( svc, clid, p1, p2, ip1, ip2),
108  m_attrListColl(attrListColl)
109 {
110  if (m_attrListColl) m_attrListColl->addRef();
111 }
112 
113 inline
115 {
116  if (m_attrListColl) m_attrListColl->release();
117 }
118 
121 {
122  return m_attrListColl;
123 }
124 
125 inline void
127 {
128  if (m_attrListColl) m_attrListColl->release();
130  if (m_attrListColl) m_attrListColl->addRef();
131 }
132 
133 #endif // ATHENAPOOLCNVSVC_CONDATTRLISTCOLLADDRESS_H
134 
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:80
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
CondAttrListCollAddress
This class provides the an IOpaqueAddress/GenericAddress which can hold a pointer to an CondAttrListC...
Definition: CondAttrListCollAddress.h:27
CondAttrListCollAddress::m_attrListColl
CondAttrListCollection * m_attrListColl
Pointer to an CondAttrListCollection.
Definition: CondAttrListCollAddress.h:58
CondAttrListCollAddress::setAttrListColl
void setAttrListColl(CondAttrListCollection *attrListColl)
Add AttributeList.
Definition: CondAttrListCollAddress.h:126
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:114
CondAttrListCollAddress::attrListColl
CondAttrListCollection * attrListColl()
Access to AttributeList.
Definition: CondAttrListCollAddress.h:120
calibdata.copy
bool copy
Definition: calibdata.py:27
CondAttrListCollAddress::CondAttrListCollAddress
CondAttrListCollAddress()
Dummy constructor.
Definition: CondAttrListCollAddress.h:63