ATLAS Offline Software
Loading...
Searching...
No Matches
ExpressionParsing::MethodHelper< T_Cont, T_src > Class Template Reference

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

#include <MethodAccessor.h>

Collaboration diagram for ExpressionParsing::MethodHelper< T_Cont, T_src >:

Classes

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

Public Member Functions

 MethodHelper (const RootUtils::ClingCallWrapper< T_src > &method_wrapper, const void *data)
std::size_t size (const T_Cont &cont) const
T_src get (const T_Cont &) const
 Get the scalar provided by the container.
T_src get (const T_Cont &, std::size_t idx) const
 Get the specified element of the vector provided by the container.

Private Attributes

RootUtils::ClingCallWrapper< T_src > m_methodWrapper
const void * m_data

Detailed Description

template<class T_Cont, typename T_src>
class ExpressionParsing::MethodHelper< T_Cont, T_src >

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

Definition at line 93 of file MethodAccessor.h.

Constructor & Destructor Documentation

◆ MethodHelper()

template<class T_Cont, typename T_src>
ExpressionParsing::MethodHelper< T_Cont, T_src >::MethodHelper ( const RootUtils::ClingCallWrapper< T_src > & method_wrapper,
const void * data )
inline

Definition at line 95 of file MethodAccessor.h.

99 {
100 }
Auxiliary class to handle method calls of "scalar" containers (AuxElement).
RootUtils::ClingCallWrapper< T_src > m_methodWrapper

Member Function Documentation

◆ get() [1/2]

template<class T_Cont, typename T_src>
T_src ExpressionParsing::MethodHelper< T_Cont, T_src >::get ( const T_Cont & ) const
inline

Get the scalar provided by the container.

Definition at line 107 of file MethodAccessor.h.

107 {
108 void* data_nc ATLAS_THREAD_SAFE = const_cast<void *>(m_data);
110 return ret;
111 }

◆ get() [2/2]

template<class T_Cont, typename T_src>
T_src ExpressionParsing::MethodHelper< T_Cont, T_src >::get ( const T_Cont & ,
std::size_t idx ) const
inline

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

Definition at line 114 of file MethodAccessor.h.

114 {
115 assert( idx==0);
116 void* data_nc ATLAS_THREAD_SAFE = const_cast<void *>(m_data); // required by TMethodCall
118 return ret;
119 }

◆ size()

template<class T_Cont, typename T_src>
std::size_t ExpressionParsing::MethodHelper< T_Cont, T_src >::size ( const T_Cont & cont) const
inline

Definition at line 102 of file MethodAccessor.h.

102 {
103 return getContainerSize(cont); //@TODO correct ? or 1 ?
104 }

Member Data Documentation

◆ m_data

template<class T_Cont, typename T_src>
const void* ExpressionParsing::MethodHelper< T_Cont, T_src >::m_data
private

Definition at line 136 of file MethodAccessor.h.

◆ m_methodWrapper

template<class T_Cont, typename T_src>
RootUtils::ClingCallWrapper<T_src> ExpressionParsing::MethodHelper< T_Cont, T_src >::m_methodWrapper
private

Definition at line 135 of file MethodAccessor.h.


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