ATLAS Offline Software
DataHeader_p3.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
8  m_token(),
9  m_alias(),
10  m_technology(0U),
11  m_oid1(0U),
12  m_oid2(0U),
13  m_dbGuidIdx(0U),
14  m_classIdIdx(0U),
15  m_prefixIdx(0U),
16  m_keyPos(0U),
17  m_hashes() {}
19  m_token(rhs.m_token),
20  m_alias(rhs.m_alias),
21  m_technology(rhs.m_technology),
22  m_oid1(rhs.m_oid1),
23  m_oid2(rhs.m_oid2),
24  m_dbGuidIdx(rhs.m_dbGuidIdx),
25  m_classIdIdx(rhs.m_classIdIdx),
26  m_prefixIdx(rhs.m_prefixIdx),
27  m_keyPos(rhs.m_keyPos),
28  m_hashes(rhs.m_hashes) {}
30 
32  if (this != &rhs) {
33  m_clids = rhs.m_clids;
34  m_token = rhs.m_token;
35  m_alias = rhs.m_alias;
37  m_oid1 = rhs.m_oid1;
38  m_oid2 = rhs.m_oid2;
41  m_keyPos = rhs.m_keyPos;
42  m_hashes = rhs.m_hashes;
44  }
45  return(*this);
46 }
47 
48 const std::vector<unsigned int>& DataHeaderElement_p3::clids() const {
49  return(m_clids);
50 }
51 
52 const std::string& DataHeaderElement_p3::token() const {
53  return(m_token);
54 }
55 
56 const std::vector<std::string>& DataHeaderElement_p3::alias() const {
57  return(m_alias);
58 }
59 
60 const std::string& DataHeaderElement_p3::key() const {
61  return(m_alias.front());
62 }
63 
64 unsigned int DataHeaderElement_p3::pClid() const {
65  return(m_clids.front());
66 }
67 
68 unsigned int DataHeaderElement_p3::oid1() const {
69  return(m_oid1);
70 }
71 
72 unsigned int DataHeaderElement_p3::oid2() const {
73  return(m_oid2);
74 }
75 
76 
78  : m_DataHeader(), m_InputDataHeader(), m_GuidMap() {}
79 DataHeader_p3::DataHeader_p3(const DataHeader_p3& rhs) : m_DataHeader(rhs.m_DataHeader),
80  m_InputDataHeader(rhs.m_InputDataHeader),
81  m_GuidMap(rhs.m_GuidMap) {}
83 
85  if (this != &rhs) {
88  m_GuidMap = rhs.m_GuidMap;
89  }
90  return(*this);
91 }
92 
93 const std::vector<DataHeaderElement_p3>& DataHeader_p3::elements() const {
94  return(m_DataHeader);
95 }
96 
97 const std::vector<DataHeaderElement_p3>& DataHeader_p3::inputElements() const {
98  return(m_InputDataHeader);
99 }
100 
101 const std::vector<std::string>& DataHeader_p3::GuidMap() const {
102  return(m_GuidMap);
103 }
DataHeader_p3::m_InputDataHeader
std::vector< DataHeaderElement_p3 > m_InputDataHeader
Definition: DataHeader_p3.h:69
DataHeaderElement_p3::token
const std::string & token() const
Definition: DataHeader_p3.cxx:52
DataHeaderElement_p3::oid2
unsigned int oid2() const
Definition: DataHeader_p3.cxx:72
DataHeaderElement_p3
This class provides a persistent representation for the DataHeaderElement class.
Definition: DataHeader_p3.h:21
DataHeaderElement_p3::m_classIdIdx
unsigned short m_classIdIdx
Definition: DataHeader_p3.h:45
DataHeader_p3::GuidMap
const std::vector< std::string > & GuidMap() const
Definition: DataHeader_p3.cxx:101
DataHeaderElement_p3::m_dbGuidIdx
unsigned short m_dbGuidIdx
Definition: DataHeader_p3.h:45
DataHeaderElement_p3::m_hashes
std::vector< uint64_t > m_hashes
Definition: DataHeader_p3.h:47
DataHeaderElement_p3::key
const std::string & key() const
Definition: DataHeader_p3.cxx:60
DataHeaderElement_p3::m_oid2
unsigned int m_oid2
Definition: DataHeader_p3.h:44
DataHeader_p3
This class provides a persistent representation for the DataHeader class.
Definition: DataHeader_p3.h:53
DataHeaderElement_p3::~DataHeaderElement_p3
virtual ~DataHeaderElement_p3()
Definition: DataHeader_p3.cxx:29
DataHeaderElement_p3::m_prefixIdx
unsigned short m_prefixIdx
Definition: DataHeader_p3.h:45
DataHeaderElement_p3::m_token
std::string m_token
Definition: DataHeader_p3.h:42
DataHeader_p3::m_DataHeader
std::vector< DataHeaderElement_p3 > m_DataHeader
Definition: DataHeader_p3.h:68
DataHeaderElement_p3::m_oid1
unsigned int m_oid1
Definition: DataHeader_p3.h:44
DataHeader_p3::DataHeader_p3
DataHeader_p3()
Definition: DataHeader_p3.cxx:77
DataHeaderElement_p3::DataHeaderElement_p3
DataHeaderElement_p3()
Definition: DataHeader_p3.cxx:7
DataHeader_p3::elements
const std::vector< DataHeaderElement_p3 > & elements() const
Definition: DataHeader_p3.cxx:93
DataHeader_p3.h
This file contains the class definition for the DataHeader_p3 and DataHeaderElement_p3 classes.
DataHeader_p3::operator=
DataHeader_p3 & operator=(const DataHeader_p3 &rhs)
Definition: DataHeader_p3.cxx:84
DataHeaderElement_p3::operator=
DataHeaderElement_p3 & operator=(const DataHeaderElement_p3 &rhs)
Definition: DataHeader_p3.cxx:31
DataHeader_p3::inputElements
const std::vector< DataHeaderElement_p3 > & inputElements() const
Definition: DataHeader_p3.cxx:97
DataHeaderElement_p3::m_technology
unsigned int m_technology
Definition: DataHeader_p3.h:44
DataHeaderElement_p3::pClid
unsigned int pClid() const
Definition: DataHeader_p3.cxx:64
DataHeaderElement_p3::alias
const std::vector< std::string > & alias() const
Definition: DataHeader_p3.cxx:56
DataHeaderElement_p3::m_clids
std::vector< unsigned int > m_clids
Definition: DataHeader_p3.h:41
DataHeaderElement_p3::clids
const std::vector< unsigned int > & clids() const
Definition: DataHeader_p3.cxx:48
DataHeader_p3::m_GuidMap
std::vector< std::string > m_GuidMap
Definition: DataHeader_p3.h:70
DataHeader_p3::~DataHeader_p3
virtual ~DataHeader_p3()
Definition: DataHeader_p3.cxx:82
DataHeaderElement_p3::m_keyPos
unsigned short m_keyPos
Definition: DataHeader_p3.h:46
DataHeaderElement_p3::oid1
unsigned int oid1() const
Definition: DataHeader_p3.cxx:68
DataHeaderElement_p3::m_alias
std::vector< std::string > m_alias
Definition: DataHeader_p3.h:43