ATLAS Offline Software
Classes | Public Member Functions | List of all members
ExpressionParsing::StdVectorHelper< T_src > Class Template Reference

Auxiliary class to handle method calls of "scalar" containers (AuxElement). More...

#include <PlainAccessor.h>

Collaboration diagram for ExpressionParsing::StdVectorHelper< T_src >:

Classes

class  Kit
 Auxiliary class to create the corresponding auxiliary helper object. More...
 

Public Member Functions

std::size_t size (const std::vector< T_src > &cont) const
 
T_src get (const std::vector< T_src > &cont) const
 Get the scalar provided by the container. More...
 
T_src get (const std::vector< T_src > &cont, std::size_t idx) const
 Get the specified element of the vector provided by the container. More...
 

Detailed Description

template<typename T_src>
class ExpressionParsing::StdVectorHelper< T_src >

Auxiliary class to handle method calls of "scalar" containers (AuxElement).

Definition at line 26 of file PlainAccessor.h.

Member Function Documentation

◆ get() [1/2]

template<typename T_src >
T_src ExpressionParsing::StdVectorHelper< T_src >::get ( const std::vector< T_src > &  cont) const
inline

Get the scalar provided by the container.

Definition at line 33 of file PlainAccessor.h.

33  {
34  (void) cont;
35  return cont[0];
36  }

◆ get() [2/2]

template<typename T_src >
T_src ExpressionParsing::StdVectorHelper< T_src >::get ( const std::vector< T_src > &  cont,
std::size_t  idx 
) const
inline

Get the specified element of the vector provided by the container.

Definition at line 39 of file PlainAccessor.h.

39  {
40  (void) cont;
41  (void) idx;
42  return cont[idx];
43  }

◆ size()

template<typename T_src >
std::size_t ExpressionParsing::StdVectorHelper< T_src >::size ( const std::vector< T_src > &  cont) const
inline

Definition at line 28 of file PlainAccessor.h.

28  {
29  return cont.size(); //@TODO correct ? or 1 ?
30  }

The documentation for this class was generated from the following file:
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69