ATLAS Offline Software
A/AthLinks/ElementLinkBase.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 /*
3  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4  */
5 #ifndef ATHLINKS_ELEMENTLINKBASE_H
6 #define ATHLINKS_ELEMENTLINKBASE_H
7 
8 // System include(s):
9 extern "C" {
10 # include <stdint.h>
11 }
12 
24 class ElementLinkBase {
25 private:
27  static constexpr uint32_t INVALID = static_cast<uint32_t> (-1);
28 public:
32  virtual ~ElementLinkBase() {}
33 
35  uint32_t persKey() const;
37  void setPersKey( uint32_t key );
38 
42  void setPersIndex( uint32_t index );
43 
45  virtual bool toTransient() = 0;
46 
52  bool isDefault() const;
53 
54 protected:
59 
69 
70 }; // class ElementLinkBase
71 
72 #endif // ATHLINKS_ELEMENTLINKBASE_H
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
index
Definition: index.py:1
ElementLinkBase::persIndex
uint32_t persIndex() const
Get the index of the referenced object in the container.
ElementLinkBase::toTransient
virtual bool toTransient()=0
Reset the object's internal cache.
ElementLinkBase::~ElementLinkBase
virtual ~ElementLinkBase()
Destructor.
Definition: A/AthLinks/ElementLinkBase.h:32
ElementLinkBase::setPersKey
void setPersKey(uint32_t key)
Set the key/identifier of the referenced container.
Definition: ElementLinkBase.cxx:18
ElementLinkBase
Base class for ElementLinks to vectors of pointers.
Definition: AthLinks/ElementLinkBase.h:59
ElementLinkBase::persKey
uint32_t persKey() const
Get the key/identifier of the referenced container.
ElementLinkBase::m_isDirectIO
bool m_isDirectIO
A transient variable signalling when direct I/O is happening.
Definition: A/AthLinks/ElementLinkBase.h:68
ElementLinkBase::INVALID
static const uint32_t INVALID
Value to mark an invalid index.
Definition: AthLinks/ElementLinkBase.h:62
ElementLinkBase::m_persKey
uint32_t m_persKey
Key/identifier of the referenced container.
Definition: A/AthLinks/ElementLinkBase.h:56
ElementLinkBase::setPersIndex
void setPersIndex(uint32_t index)
Set the index of the referenced object in the container.
Definition: ElementLinkBase.cxx:36
ElementLinkBase::ElementLinkBase
ElementLinkBase()
Default constructor.
ElementLinkBase::key
sgkey_t key() const
Return the SG key that we reference, as a hash.
ElementLinkBase::m_persIndex
uint32_t m_persIndex
Index of the referenced object in the container.
Definition: A/AthLinks/ElementLinkBase.h:58
ElementLinkBase::isDefault
bool isDefault() const
Is the link in the default state.