ATLAS Offline Software
Control
AthLinksSA
Root
DataLinkBase.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Local include(s):
6
#include "AthLinks/DataLinkBase.h"
7
8
DataLinkBase::DataLinkBase
(
uint32_t
key
)
9
: m_persKey(
key
), m_isDirectIO( false ) {
10
11
}
12
13
uint32_t
DataLinkBase::persKey
()
const
{
14
15
return
m_persKey
;
16
}
17
18
void
DataLinkBase::setPersKey
(
uint32_t
key
) {
19
20
// Check if we're actually changing anything:
21
if
(
m_persKey
==
key
)
return
;
22
// Store the new key:
23
m_persKey
=
key
;
24
25
// Reset the internal cache:
26
toTransient
();
27
28
return
;
29
}
30
31
bool
DataLinkBase::isDefault
()
const
{
32
33
return
(
m_persKey
== 0 );
34
}
35
36
void
DataLinkBase::clear
() {
37
38
m_persKey
= 0;
39
return
;
40
}
DataLinkBase::clear
void clear()
Clear the link (make it null).
Definition:
DataLinkBase.cxx:36
xAOD::uint32_t
setEventNumber uint32_t
Definition:
EventInfo_v1.cxx:127
DataLinkBase::DataLinkBase
DataLinkBase()
Default constructor.
DataLinkBase::m_persKey
sgkey_t m_persKey
The hashed key for this link.
Definition:
AthLinks/DataLinkBase.h:343
DataLinkBase::persKey
uint32_t persKey() const
Get the key/identifier of the referenced container.
Definition:
DataLinkBase.cxx:13
DataLinkBase::key
sgkey_t key() const
Return the SG key that we reference, as a hash.
DataLinkBase::toTransient
virtual bool toTransient()=0
Reset the object's internal cache.
DataLinkBase::setPersKey
void setPersKey(uint32_t key)
Set the key/identifier of the referenced container.
Definition:
DataLinkBase.cxx:18
DataLinkBase::isDefault
bool isDefault() const
Test to see if we're in the default state.
Definition:
DataLinkBase.cxx:31
mapkey::key
key
Definition:
TElectronEfficiencyCorrectionTool.cxx:37
Generated on Sun Dec 22 2024 21:09:03 for ATLAS Offline Software by
1.8.18