ATLAS Offline Software
Loading...
Searching...
No Matches
DMTest::PLinks_v1 Class Reference

For testing packed links. More...

#include <PLinks_v1.h>

Inheritance diagram for DMTest::PLinks_v1:
Collaboration diagram for DMTest::PLinks_v1:

Public Types

using const_el_range = SG::ConstAccessor<vlinks_type>::const_elt_span
using el_range = SG::Accessor<vlinks_type>::elt_span

Public Member Functions

ElementLink< CVecplink () const
void setPLink (const ElementLink< CVec > &l)
ElementLink< CVecvlink (size_t i) const
 Get element i of the vector of links.
void setVLink (size_t i, const ElementLink< CVec > &l)
 Set element i of the vector of links.
const_el_range vlinks () const
 Get the vector of links, as a const range.
el_range vlinks ()
 Get the vector of links, as a non-const range.
void setVLinks (const std::vector< ElementLink< CVec > > &v)
 Set the vector of links.

Private Types

using plink_type = SG::PackedLink<CVec>
using vlinks_type = std::vector<SG::PackedLink<CVec> >

Detailed Description

For testing packed links.

A PLinks object holds an ElementLink to CVec objects, stored as packed links, as well as a vector of links.

Definition at line 32 of file PLinks_v1.h.

Member Typedef Documentation

◆ const_el_range

Definition at line 50 of file PLinks_v1.h.

◆ el_range

Definition at line 54 of file PLinks_v1.h.

◆ plink_type

Definition at line 36 of file PLinks_v1.h.

◆ vlinks_type

using DMTest::PLinks_v1::vlinks_type = std::vector<SG::PackedLink<CVec> >
private

Definition at line 37 of file PLinks_v1.h.

Member Function Documentation

◆ plink()

ElementLink< CVec > DMTest::PLinks_v1::plink ( ) const

◆ setPLink()

void DMTest::PLinks_v1::setPLink ( const ElementLink< CVec > & l)

◆ setVLink()

void DMTest::PLinks_v1::setVLink ( size_t i,
const ElementLink< CVec > & l )

Set element i of the vector of links.

Definition at line 31 of file PLinks_v1.cxx.

32{
33 static const SG::Accessor<vlinks_type> acc( "vlinks" );
34 acc( *this ).at(i) = l;
35}
l
Printing final latex table to .tex output file.
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:573

◆ setVLinks()

void DMTest::PLinks_v1::setVLinks ( const std::vector< ElementLink< CVec > > & v)

Set the vector of links.

Definition at line 55 of file PLinks_v1.cxx.

56{
57 static const SG::Accessor<vlinks_type> acc( "vlinks" );
58 acc( *this ) = v;
59}

◆ vlink()

ElementLink< CVec > DMTest::PLinks_v1::vlink ( size_t i) const

Get element i of the vector of links.

Definition at line 24 of file PLinks_v1.cxx.

24 {
25 static const SG::ConstAccessor<vlinks_type> acc( "vlinks" );
26 return acc( *this ).at (i);
27}
SG::ConstAccessor< T, ALLOC > ConstAccessor
Definition AuxElement.h:570

◆ vlinks() [1/2]

auto DMTest::PLinks_v1::vlinks ( )

Get the vector of links, as a non-const range.

Definition at line 47 of file PLinks_v1.cxx.

48{
49 static const SG::Accessor<vlinks_type> acc( "vlinks" );
50 return acc( *this );
51}

◆ vlinks() [2/2]

auto DMTest::PLinks_v1::vlinks ( ) const

Get the vector of links, as a const range.

Definition at line 39 of file PLinks_v1.cxx.

40{
41 static const SG::ConstAccessor<vlinks_type> acc( "vlinks" );
42 return acc( *this );
43}

The documentation for this class was generated from the following files: