ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthContainers
AthContainers
tools
LinkedVarAccessorBase.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
/*
3
* Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration.
4
*/
11
12
13
#ifndef ATHCONTAINERS_LINKEDVARACCESSORBASE_H
14
#define ATHCONTAINERS_LINKEDVARACCESSORBASE_H
15
16
17
#include "
AthContainers/tools/AuxElementConcepts.h
"
18
#include "
AthContainersInterfaces/AuxTypes.h
"
19
#include <cstdint>
20
21
22
namespace
SG
{
namespace
detail
{
23
24
28
class
LinkedVarAccessorBase
29
{
30
public
:
35
template
<
class
ELT>
36
requires
(
IsConstAuxElement<ELT>
)
37
bool
isAvailable
(
const
ELT& e)
const
;
38
39
44
bool
isAvailable
(
const
AuxVectorData
& e)
const
;
45
46
50
SG::auxid_t
auxid
()
const
;
51
52
56
SG::auxid_t
linkedAuxid
()
const
;
57
58
59
protected
:
60
// Store these as uint32_t rather than auxid_t since we're going to want
61
// to be able to create temporary instances of this.
63
uint32_t
m_linkedAuxid
= 0;
64
66
uint32_t
m_auxid
= 0;
67
};
68
69
70
} }
// namespace SG::detail
71
72
73
#include "
AthContainers/tools/LinkedVarAccessorBase.icc
"
74
75
76
#endif
// not ATHCONTAINERS_LINKEDVARACCESSORBASE_H
AuxElementConcepts.h
AuxTypes.h
Basic definitions for auxiliary types.
LinkedVarAccessorBase.icc
SG::AuxVectorData
Manage lookup of vectors of auxiliary data.
Definition
AuxVectorData.h:164
SG::detail::LinkedVarAccessorBase
Base class usable for accessors for variables with linked variables.
Definition
LinkedVarAccessorBase.h:29
SG::detail::LinkedVarAccessorBase::auxid
SG::auxid_t auxid() const
Return the aux id for this variable.
SG::detail::LinkedVarAccessorBase::m_auxid
uint32_t m_auxid
The cached auxid.
Definition
LinkedVarAccessorBase.h:66
SG::detail::LinkedVarAccessorBase::isAvailable
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
SG::detail::LinkedVarAccessorBase::m_linkedAuxid
uint32_t m_linkedAuxid
The cached auxid for the linked payload vector.
Definition
LinkedVarAccessorBase.h:63
SG::detail::LinkedVarAccessorBase::isAvailable
bool isAvailable(const AuxVectorData &e) const
Test to see if this variable exists in the store.
SG::detail::LinkedVarAccessorBase::linkedAuxid
SG::auxid_t linkedAuxid() const
Return the aux id for the linked payload vector.
SG::IsConstAuxElement
Test if T is compatible with ConstAuxElement.
Definition
AuxElementConcepts.h:34
SG::detail
Definition
DataVectorWithAllocFwd.h:22
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
SG::auxid_t
size_t auxid_t
Identifier for a particular aux data item.
Definition
AuxTypes.h:27
Generated on
for ATLAS Offline Software by
1.17.0