Public Member Functions | Public Attributes | List of all members
Summer< T > Struct Template Reference

Public Member Functions

void operator() (T v)
 
get () const
 
void reset ()
 
void operator() (T v)
 
get () const
 
void reset ()
 

Public Attributes

sum = T { 0 }
 

Detailed Description

template<typename T>
struct Summer< T >

Definition at line 21 of file geometrydatacontainers_test.cxx.

Member Function Documentation

template<typename T>
T Summer< T >::get ( ) const
inline

Definition at line 26 of file readoutdatacontainers_test.cxx.

26 { return sum; }
template<typename T>
T Summer< T >::get ( ) const
inline

Definition at line 27 of file geometrydatacontainers_test.cxx.

27 { return sum; }
template<typename T>
void Summer< T >::operator() ( v)
inline

Definition at line 24 of file readoutdatacontainers_test.cxx.

24 { sum += v; }
template<typename T>
void Summer< T >::operator() ( v)
inline

Definition at line 25 of file geometrydatacontainers_test.cxx.

25 { sum += v; }
template<typename T>
void Summer< T >::reset ( )
inline
template<typename T>
void Summer< T >::reset ( )
inline

Member Data Documentation

template<typename T>
T Summer< T >::sum = T { 0 }

Definition at line 23 of file geometrydatacontainers_test.cxx.


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