ATLAS Offline Software
AthenaAttrListAddress.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_ATHENAATTRLISTADDRESS_H
6 #define ATHENAPOOLCNVSVC_ATHENAATTRLISTADDRESS_H
7 
13 // AthenaAttrList
15 
16 // Framework include files
17 #include "GaudiKernel/GenericAddress.h"
18 
19 // Forward declarations
20 class IRegistry;
21 
27 class AthenaAttrListAddress : public GenericAddress {
28 public:
34  AthenaAttrListAddress(const GenericAddress& copy);
37  const CLID& clid,
38  const std::string& p1="",
39  const std::string& p2="",
40  unsigned long ip1=0,
41  unsigned long ip2=0,
43 
45  virtual ~AthenaAttrListAddress();
46 
49 
52 
55 
56 private:
57 
60 };
61 
63 inline
65  :
66  GenericAddress(),
67  m_attrList(0)
68 {}
69 
70 inline
72  :
73  GenericAddress(copy),
74  m_attrList(copy.m_attrList)
75 {
76  if (m_attrList) m_attrList->addRef();
77 }
78 
79 
80 inline
82  :
83  GenericAddress(copy),
84  m_attrList(0)
85 {}
86 
87 inline
89  const CLID& clid,
90  const std::string& p1,
91  const std::string& p2,
92  unsigned long ip1,
93  unsigned long ip2,
94  AthenaAttributeList* attrList)
95  :
96  GenericAddress( svc, clid, p1, p2, ip1, ip2),
97  m_attrList(attrList)
98 {
99  if (m_attrList) m_attrList->addRef();
100 }
101 
102 inline
104 {
105  if (m_attrList) m_attrList->release();
106 }
107 
108 
109 inline AthenaAttributeList*
111 {
112  return m_attrList;
113 }
114 
115 inline void
117 {
118  if (m_attrList) m_attrList->release();
120  if (m_attrList) m_attrList->addRef();
121 }
122 
123 #endif // ATHENAPOOLCNVSVC_ATHENAATTRLISTADDRESS_H
124 
AthenaAttrListAddress::attrList
AthenaAttributeList * attrList()
Access to AttributeList.
Definition: AthenaAttrListAddress.h:110
AthenaAttrListAddress::~AthenaAttrListAddress
virtual ~AthenaAttrListAddress()
Standard Destructor.
Definition: AthenaAttrListAddress.h:103
AthenaAttributeList.h
AthenaAttrListAddress
This class provides the an IOpaqueAddress/GenericAddress which can hold a pointer to an AthenaAttribu...
Definition: AthenaAttrListAddress.h:27
AthenaAttrListAddress::m_attrList
AthenaAttributeList * m_attrList
Pointer to an AthenaAttributeList.
Definition: AthenaAttrListAddress.h:59
AthenaAttributeList
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
Definition: PersistentDataModel/PersistentDataModel/AthenaAttributeList.h:45
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
AthenaAttrListAddress::setAttrList
void setAttrList(AthenaAttributeList *attrList)
Add AttributeList.
Definition: AthenaAttrListAddress.h:116
AthenaAttrListAddress::AthenaAttrListAddress
AthenaAttrListAddress()
Dummy constructor.
Definition: AthenaAttrListAddress.h:64
AthenaAttrListAddress::operator=
AthenaAttrListAddress & operator=(const AthenaAttrListAddress &copy)=delete
Assignment is not implemented.
calibdata.copy
bool copy
Definition: calibdata.py:27