ATLAS Offline Software
DataHeader_p4.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 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 unsigned int DataHeaderElement_p4::pClid() const {
49  return(m_clids.front());
50 }
51 
52 const std::vector<unsigned int>& DataHeaderElement_p4::clids() const {
53  return(m_clids);
54 }
55 
56 const std::string& DataHeaderElement_p4::key() const {
57  return(m_alias.front());
58 }
59 
60 const std::vector<std::string>& DataHeaderElement_p4::alias() const {
61  return(m_alias);
62 }
63 
64 const std::string& DataHeaderElement_p4::token() const {
65  return(m_token);
66 }
67 
68 unsigned int DataHeaderElement_p4::oid1() const {
69  return(m_oid1);
70 }
71 
72 unsigned int DataHeaderElement_p4::oid2() const {
73  return(m_oid2);
74 }
75 
76 
77 DataHeader_p4::DataHeader_p4() : m_dataHeader(), m_provSize(0U), m_guidMap() {}
78 DataHeader_p4::DataHeader_p4(const DataHeader_p4& rhs) : m_dataHeader(rhs.m_dataHeader),
79  m_provSize(rhs.m_provSize),
80  m_guidMap(rhs.m_guidMap) {}
82 
84  if (this != &rhs) {
86  m_provSize = rhs.m_provSize;
87  m_guidMap = rhs.m_guidMap;
88  }
89  return(*this);
90 }
91 
92 const std::vector<DataHeaderElement_p4>& DataHeader_p4::elements() const {
93  return(m_dataHeader);
94 }
95 
96 unsigned int DataHeader_p4::provenanceSize() const {
97  return(m_provSize);
98 }
99 
100 const std::vector<std::string>& DataHeader_p4::guidMap() const {
101  return(m_guidMap);
102 }
DataHeader_p4
This class provides a persistent representation for the DataHeader class.
Definition: DataHeader_p4.h:53
DataHeaderElement_p4::m_classIdIdx
unsigned short m_classIdIdx
Definition: DataHeader_p4.h:45
DataHeader_p4::~DataHeader_p4
virtual ~DataHeader_p4()
Definition: DataHeader_p4.cxx:81
DataHeaderElement_p4::m_token
std::string m_token
Definition: DataHeader_p4.h:42
DataHeader_p4::operator=
DataHeader_p4 & operator=(const DataHeader_p4 &rhs)
Definition: DataHeader_p4.cxx:83
DataHeaderElement_p4::oid1
unsigned int oid1() const
Definition: DataHeader_p4.cxx:68
DataHeaderElement_p4::m_prefixIdx
unsigned short m_prefixIdx
Definition: DataHeader_p4.h:45
DataHeaderElement_p4::alias
const std::vector< std::string > & alias() const
Definition: DataHeader_p4.cxx:60
DataHeader_p4::m_guidMap
std::vector< std::string > m_guidMap
Definition: DataHeader_p4.h:70
DataHeader_p4::m_dataHeader
std::vector< DataHeaderElement_p4 > m_dataHeader
Definition: DataHeader_p4.h:68
DataHeaderElement_p4::clids
const std::vector< unsigned int > & clids() const
Definition: DataHeader_p4.cxx:52
DataHeader_p4::DataHeader_p4
DataHeader_p4()
Definition: DataHeader_p4.cxx:77
DataHeader_p4::m_provSize
unsigned int m_provSize
Definition: DataHeader_p4.h:69
DataHeaderElement_p4::~DataHeaderElement_p4
virtual ~DataHeaderElement_p4()
Definition: DataHeader_p4.cxx:29
DataHeader_p4::provenanceSize
unsigned int provenanceSize() const
Definition: DataHeader_p4.cxx:96
DataHeaderElement_p4::DataHeaderElement_p4
DataHeaderElement_p4()
Definition: DataHeader_p4.cxx:7
DataHeaderElement_p4::token
const std::string & token() const
Definition: DataHeader_p4.cxx:64
DataHeaderElement_p4::m_technology
unsigned int m_technology
Definition: DataHeader_p4.h:44
DataHeaderElement_p4::key
const std::string & key() const
Definition: DataHeader_p4.cxx:56
DataHeaderElement_p4::m_keyPos
unsigned short m_keyPos
Definition: DataHeader_p4.h:46
DataHeaderElement_p4::operator=
DataHeaderElement_p4 & operator=(const DataHeaderElement_p4 &rhs)
Definition: DataHeader_p4.cxx:31
DataHeader_p4::guidMap
const std::vector< std::string > & guidMap() const
Definition: DataHeader_p4.cxx:100
DataHeader_p4.h
This file contains the class definition for the DataHeader_p4 and DataHeaderElement_p4 classes.
DataHeaderElement_p4::pClid
unsigned int pClid() const
Definition: DataHeader_p4.cxx:48
DataHeaderElement_p4::m_hashes
std::vector< uint64_t > m_hashes
Definition: DataHeader_p4.h:47
DataHeaderElement_p4::m_alias
std::vector< std::string > m_alias
Definition: DataHeader_p4.h:43
DataHeaderElement_p4::m_dbGuidIdx
unsigned short m_dbGuidIdx
Definition: DataHeader_p4.h:45
DataHeaderElement_p4::m_clids
std::vector< unsigned int > m_clids
Definition: DataHeader_p4.h:41
DataHeaderElement_p4::oid2
unsigned int oid2() const
Definition: DataHeader_p4.cxx:72
DataHeaderElement_p4::m_oid1
unsigned int m_oid1
Definition: DataHeader_p4.h:44
DataHeader_p4::elements
const std::vector< DataHeaderElement_p4 > & elements() const
Definition: DataHeader_p4.cxx:92
DataHeaderElement_p4
This class provides a persistent representation for the DataHeaderElement class.
Definition: DataHeader_p4.h:21
DataHeaderElement_p4::m_oid2
unsigned int m_oid2
Definition: DataHeader_p4.h:44