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

For testing jagged vectors. More...

#include <JVec_v1.h>

Inheritance diagram for DMTest::JVec_v1:
Collaboration diagram for DMTest::JVec_v1:

Public Types

using intRange_t = SG::ConstAccessor<ielt_type>::element_type
using floatRange_t = SG::ConstAccessor<felt_type>::element_type
using stringRange_t = SG::ConstAccessor<selt_type>::element_type
using linkRange_t = SG::ConstAccessor<lelt_type>::element_type

Public Member Functions

intRange_t ivec () const
void setIVec (const std::vector< int > &v)
floatRange_t fvec () const
void setFVec (const std::vector< float > &v)
stringRange_t svec () const
void setSVec (const std::vector< std::string > &v)
linkRange_t lvec () const
void setLVec (const std::vector< ElementLink< CVec > > &v)

Private Types

using ielt_type = SG::JaggedVecElt<int>
using felt_type = SG::JaggedVecElt<float>
using selt_type = SG::JaggedVecElt<std::string>
using lelt_type = SG::JaggedVecElt<ElementLink<CVec> >

Detailed Description

For testing jagged vectors.

A JVec object holds an jagged vectors to several different types: int, float, std::string, and ElementLink<CVec>.

Definition at line 34 of file JVec_v1.h.

Member Typedef Documentation

◆ felt_type

Definition at line 39 of file JVec_v1.h.

◆ floatRange_t

Definition at line 46 of file JVec_v1.h.

◆ ielt_type

Definition at line 38 of file JVec_v1.h.

◆ intRange_t

Definition at line 45 of file JVec_v1.h.

◆ lelt_type

Definition at line 41 of file JVec_v1.h.

◆ linkRange_t

Definition at line 48 of file JVec_v1.h.

◆ selt_type

using DMTest::JVec_v1::selt_type = SG::JaggedVecElt<std::string>
private

Definition at line 40 of file JVec_v1.h.

◆ stringRange_t

Definition at line 47 of file JVec_v1.h.

Member Function Documentation

◆ fvec()

auto DMTest::JVec_v1::fvec ( ) const

Definition at line 31 of file JVec_v1.cxx.

31 {
32 static const SG::ConstAccessor<felt_type> acc( "fvec" );
33 return acc( *this );
34}
SG::ConstAccessor< T, ALLOC > ConstAccessor
Definition AuxElement.h:570

◆ ivec()

auto DMTest::JVec_v1::ivec ( ) const

Definition at line 19 of file JVec_v1.cxx.

19 {
20 static const SG::ConstAccessor<ielt_type> acc( "ivec" );
21 return acc( *this );
22}

◆ lvec()

auto DMTest::JVec_v1::lvec ( ) const

Definition at line 55 of file JVec_v1.cxx.

55 {
56 static const SG::ConstAccessor<lelt_type> acc( "lvec" );
57 return acc( *this );
58}

◆ setFVec()

void DMTest::JVec_v1::setFVec ( const std::vector< float > & v)

Definition at line 37 of file JVec_v1.cxx.

37 {
38 static const SG::Accessor<felt_type> acc( "fvec" );
39 acc( *this ) = v;
40}
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:573

◆ setIVec()

void DMTest::JVec_v1::setIVec ( const std::vector< int > & v)

Definition at line 25 of file JVec_v1.cxx.

25 {
26 static const SG::Accessor<ielt_type> acc( "ivec" );
27 acc( *this ) = v;
28}

◆ setLVec()

void DMTest::JVec_v1::setLVec ( const std::vector< ElementLink< CVec > > & v)

Definition at line 61 of file JVec_v1.cxx.

61 {
62 static const SG::Accessor<lelt_type> acc( "lvec" );
63 acc( *this ) = v;
64}

◆ setSVec()

void DMTest::JVec_v1::setSVec ( const std::vector< std::string > & v)

Definition at line 49 of file JVec_v1.cxx.

49 {
50 static const SG::Accessor<selt_type> acc( "svec" );
51 acc( *this ) = v;
52}

◆ svec()

auto DMTest::JVec_v1::svec ( ) const

Definition at line 43 of file JVec_v1.cxx.

43 {
44 static const SG::ConstAccessor<selt_type> acc( "svec" );
45 return acc( *this );
46}

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