ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
DataModelTest
DataModelTestDataCommon
src
PLinks_v1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
10
11
12
#include "
DataModelTestDataCommon/versions/PLinks_v1.h
"
13
#include "
xAODCore/AuxStoreAccessorMacros.h
"
14
#include "
AthContainers/PackedLink.h
"
15
16
17
namespace
DMTest
{
18
19
20
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
PLinks_v1
, SG::PackedLink<CVec>, plink, setPLink)
21
22
23
24
ElementLink
<
CVec
>
PLinks_v1
::
vlink
(
size_t
i)
const
{
25
static
const
SG::ConstAccessor<vlinks_type>
acc(
"vlinks"
);
26
return
acc( *this ).at (i);
27
}
28
29
31
void
PLinks_v1::setVLink
(
size_t
i,
const
ElementLink<CVec>
& l)
32
{
33
static
const
SG::Accessor<vlinks_type>
acc(
"vlinks"
);
34
acc( *this ).at(i) = l;
35
}
36
37
39
auto
PLinks_v1::vlinks
()
const
->
const_el_range
40
{
41
static
const
SG::ConstAccessor<vlinks_type>
acc(
"vlinks"
);
42
return
acc( *
this
);
43
}
44
45
47
auto
PLinks_v1::vlinks
() ->
el_range
48
{
49
static
const
SG::Accessor<vlinks_type>
acc(
"vlinks"
);
50
return
acc( *
this
);
51
}
52
53
55
void
PLinks_v1::setVLinks
(
const
std::vector<
ElementLink<CVec>
>& v)
56
{
57
static
const
SG::Accessor<vlinks_type>
acc(
"vlinks"
);
58
acc( *
this
) = v;
59
}
60
61
62
}
// namespace DMTest
63
AuxStoreAccessorMacros.h
AUXSTORE_OBJECT_SETTER_AND_GETTER
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
Definition
AuxStoreAccessorMacros.h:88
PackedLink.h
PLinks_v1.h
For testing packed links.
DMTest::PLinks_v1
For testing packed links.
Definition
PLinks_v1.h:34
DMTest::PLinks_v1::vlink
ElementLink< CVec > vlink(size_t i) const
Get element i of the vector of links.
Definition
PLinks_v1.cxx:24
DMTest::PLinks_v1::el_range
SG::Accessor< vlinks_type >::elt_span el_range
Definition
PLinks_v1.h:54
DMTest::PLinks_v1::const_el_range
SG::ConstAccessor< vlinks_type >::const_elt_span const_el_range
Definition
PLinks_v1.h:50
DMTest::PLinks_v1::vlinks
const_el_range vlinks() const
Get the vector of links, as a const range.
Definition
PLinks_v1.cxx:39
DMTest::PLinks_v1::setVLink
void setVLink(size_t i, const ElementLink< CVec > &l)
Set element i of the vector of links.
Definition
PLinks_v1.cxx:31
DMTest::PLinks_v1::setVLinks
void setVLinks(const std::vector< ElementLink< CVec > > &v)
Set the vector of links.
Definition
PLinks_v1.cxx:55
ElementLink
ElementLink implementation for ROOT usage.
Definition
A/AthLinks/ElementLink.h:40
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition
Control/AthContainers/AthContainers/Accessor.h:68
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition
ConstAccessor.h:55
const
DMTest
Definition
B.h:23
DMTest::CVec
CVec_v1 CVec
Definition
CVec.h:26
Generated on
for ATLAS Offline Software by
1.17.0