ATLAS Offline Software
A/AthLinks/DataLinkBase.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 /*
3  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
4  */
5 #ifndef ATHLINKS_DATALINKBASE_H
6 #define ATHLINKS_DATALINKBASE_H
7 
8 // System include(s):
9 extern "C" {
10 # include <stdint.h>
11 }
12 
26 class DataLinkBase {
27 
28 public:
30  DataLinkBase( uint32_t key = 0 );
32  virtual ~DataLinkBase() {}
33 
35  uint32_t persKey() const;
37  void setPersKey( uint32_t key );
38 
40  bool isDefault() const;
41 
43  void clear();
44 
46  virtual bool toTransient() = 0;
47 
48 protected:
51 
61 
62 }; // class DataLinkBase
63 
64 #endif // ATHLINKS_DATALINKBASE_H
DataLinkBase::clear
void clear()
Clear the link (make it null)
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
DataLinkBase::DataLinkBase
DataLinkBase()
Default constructor.
DataLinkBase::m_isDirectIO
bool m_isDirectIO
A transient variable signalling when direct I/O is happening.
Definition: A/AthLinks/DataLinkBase.h:60
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::m_persKey
uint32_t m_persKey
Key/identifier of the referenced object.
Definition: A/AthLinks/DataLinkBase.h:50
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 if the link is in the default state.
DataLinkBase::~DataLinkBase
virtual ~DataLinkBase()
Destructor.
Definition: A/AthLinks/DataLinkBase.h:32
DataLinkBase
Type-independent part of DataLink; holds the persistent state.
Definition: AthLinks/DataLinkBase.h:37