ATLAS Offline Software
Loading...
Searching...
No Matches
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
15
16
17namespace DMTest {
18
19
20AUXSTORE_OBJECT_SETTER_AND_GETTER(PLinks_v1, SG::PackedLink<CVec>, plink, setPLink)
21
22
23
24ElementLink<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
31void 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
40{
41 static const SG::ConstAccessor<vlinks_type> acc( "vlinks" );
42 return acc( *this );
43}
44
45
48{
49 static const SG::Accessor<vlinks_type> acc( "vlinks" );
50 return acc( *this );
51}
52
53
55void 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
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
Helper class to provide type-safe access to aux data.
Helper class to provide constant type-safe access to aux data.
Definition B.h:23
CVec_v1 CVec
Definition CVec.h:26