ATLAS Offline Software
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 
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:
32  // not allowed with new Gaudi
35  CondAttrListVecAddress(const GenericAddress& copy);
38  const CLID& clid,
39  const std::string& p1="",
40  const std::string& p2="",
41  unsigned long ip1=0,
42  unsigned long ip2=0,
44 
46  virtual ~CondAttrListVecAddress();
47 
50 
53 
54 private:
55 
58 };
59 
61 inline
63  :
64  GenericAddress(),
65  m_attrListVec(0)
66 {}
67 
68 inline
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 != &copy) {
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
93  :
94  GenericAddress(copy),
95  m_attrListVec(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  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
115 {
116  if (m_attrListVec) m_attrListVec->release();
117 }
118 
119 inline CondAttrListVec*
121 {
122  return m_attrListVec;
123 }
124 
125 inline void
127 {
128  if (m_attrListVec) m_attrListVec->release();
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
CondAttrListVecAddress::m_attrListVec
CondAttrListVec * m_attrListVec
Pointer to a CondAttrListVec.
Definition: CondAttrListVecAddress.h:57
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 &copy)=delete
Assignment.