Public Types | Public Member Functions | Private Attributes | List of all members
evgen::details::Average< T > Struct Template Reference

Public Types

using data_t = T
 

Public Member Functions

void clear ()
 
void insert (data_t value)
 
data_t n () const
 
data_t average () const
 

Private Attributes

unsigned int fN = 0U
 
data_t fTotal = data_t(0)
 

Detailed Description

template<typename T>
struct evgen::details::Average< T >

Definition at line 81 of file GeneratedEventTimestamp_plugin.cc.

Member Typedef Documentation

template<typename T>
using evgen::details::Average< T >::data_t = T

Definition at line 82 of file GeneratedEventTimestamp_plugin.cc.

Member Function Documentation

template<typename T>
data_t evgen::details::Average< T >::average ( ) const
inline
template<typename T>
void evgen::details::Average< T >::clear ( void  )
inline
template<typename T>
void evgen::details::Average< T >::insert ( data_t  value)
inline

Definition at line 85 of file GeneratedEventTimestamp_plugin.cc.

85 { fTotal += value; ++fN; }
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1225
template<typename T>
data_t evgen::details::Average< T >::n ( ) const
inline

Definition at line 87 of file GeneratedEventTimestamp_plugin.cc.

87 { return fN; }

Member Data Documentation

template<typename T>
unsigned int evgen::details::Average< T >::fN = 0U
private

Definition at line 91 of file GeneratedEventTimestamp_plugin.cc.

template<typename T>
data_t evgen::details::Average< T >::fTotal = data_t(0)
private

Definition at line 92 of file GeneratedEventTimestamp_plugin.cc.


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