Grappa  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Grappa::SummarizingMetric< T > Class Template Reference

#include <SummarizingMetric.hpp>

Inheritance diagram for Grappa::SummarizingMetric< T >:

Public Member Functions

 SummarizingMetric (const char *name, T initial_value, bool reg_new=true)
 
 SummarizingMetric (const SummarizingMetric &s)
 
virtual void reset ()
 
virtual std::ostream & json (std::ostream &o) const
 
virtual void sample ()
 
virtual SummarizingMetric< T > * clone () const
 
virtual void merge_all (impl::MetricBase *static_stat_ptr)
 
const SummarizingMetric< T > & count ()
 
value () const
 Get the current value. More...
 
template<typename U >
const SummarizingMetric< T > & operator+= (U increment)
 
template<typename U >
const SummarizingMetric< T > & operator-= (U decrement)
 
const SummarizingMetric< T > & operator++ ()
 
const SummarizingMetric< T > & operator-- ()
 
operator++ (int)
 
operator-- (int)
 
 operator T () const
 
SummarizingMetricoperator= (const SummarizingMetric< T > &t)
 
SummarizingMetricoperator= (T value)
 

Protected Member Functions

void process (T t)
 
double variance () const
 
double stddev () const
 

Protected Attributes

constinitial_value
 
value_
 
size_t n
 
double mean
 
double M2
 
min
 
max
 

Detailed Description

template<typename T>
class Grappa::SummarizingMetric< T >

Definition at line 46 of file SummarizingMetric.hpp.

Constructor & Destructor Documentation

template<typename T>
Grappa::SummarizingMetric< T >::SummarizingMetric ( const char *  name,
initial_value,
bool  reg_new = true 
)
inline

Definition at line 89 of file SummarizingMetric.hpp.

template<typename T>
Grappa::SummarizingMetric< T >::SummarizingMetric ( const SummarizingMetric< T > &  s)
inline

Definition at line 115 of file SummarizingMetric.hpp.

Member Function Documentation

template<typename T>
virtual SummarizingMetric<T>* Grappa::SummarizingMetric< T >::clone ( ) const
inlinevirtual

Definition at line 150 of file SummarizingMetric.hpp.

template<typename T>
const SummarizingMetric<T>& Grappa::SummarizingMetric< T >::count ( )
inline

Definition at line 156 of file SummarizingMetric.hpp.

template<typename T>
virtual std::ostream& Grappa::SummarizingMetric< T >::json ( std::ostream &  o) const
inlinevirtual

Definition at line 133 of file SummarizingMetric.hpp.

template<typename T >
void Grappa::SummarizingMetric< T >::merge_all ( impl::MetricBase *  static_stat_ptr)
virtual

Definition at line 34 of file SummarizingMetricImpl.hpp.

template<typename T>
Grappa::SummarizingMetric< T >::operator T ( ) const
inline

Definition at line 180 of file SummarizingMetric.hpp.

template<typename T>
const SummarizingMetric<T>& Grappa::SummarizingMetric< T >::operator++ ( )
inline

Definition at line 174 of file SummarizingMetric.hpp.

template<typename T>
T Grappa::SummarizingMetric< T >::operator++ ( int  )
inline

Definition at line 176 of file SummarizingMetric.hpp.

template<typename T>
template<typename U >
const SummarizingMetric<T>& Grappa::SummarizingMetric< T >::operator+= ( increment)
inline

Definition at line 163 of file SummarizingMetric.hpp.

template<typename T>
const SummarizingMetric<T>& Grappa::SummarizingMetric< T >::operator-- ( )
inline

Definition at line 175 of file SummarizingMetric.hpp.

template<typename T>
T Grappa::SummarizingMetric< T >::operator-- ( int  )
inline

Definition at line 177 of file SummarizingMetric.hpp.

template<typename T>
template<typename U >
const SummarizingMetric<T>& Grappa::SummarizingMetric< T >::operator-= ( decrement)
inline

Definition at line 169 of file SummarizingMetric.hpp.

template<typename T>
SummarizingMetric& Grappa::SummarizingMetric< T >::operator= ( const SummarizingMetric< T > &  t)
inline

Definition at line 182 of file SummarizingMetric.hpp.

template<typename T>
SummarizingMetric& Grappa::SummarizingMetric< T >::operator= ( value)
inline

Definition at line 192 of file SummarizingMetric.hpp.

template<typename T>
void Grappa::SummarizingMetric< T >::process ( t)
inlineprotected

Definition at line 56 of file SummarizingMetric.hpp.

template<typename T>
virtual void Grappa::SummarizingMetric< T >::reset ( )
inlinevirtual

Definition at line 125 of file SummarizingMetric.hpp.

template<typename T>
virtual void Grappa::SummarizingMetric< T >::sample ( )
inlinevirtual

Definition at line 143 of file SummarizingMetric.hpp.

template<typename T>
double Grappa::SummarizingMetric< T >::stddev ( ) const
inlineprotected

Definition at line 73 of file SummarizingMetric.hpp.

template<typename T>
T Grappa::SummarizingMetric< T >::value ( ) const
inline

Get the current value.

Definition at line 159 of file SummarizingMetric.hpp.

template<typename T>
double Grappa::SummarizingMetric< T >::variance ( ) const
inlineprotected

Definition at line 69 of file SummarizingMetric.hpp.

Member Data Documentation

template<typename T>
const T Grappa::SummarizingMetric< T >::initial_value
protected

Definition at line 48 of file SummarizingMetric.hpp.

template<typename T>
double Grappa::SummarizingMetric< T >::M2
protected

Definition at line 52 of file SummarizingMetric.hpp.

template<typename T>
T Grappa::SummarizingMetric< T >::max
protected

Definition at line 54 of file SummarizingMetric.hpp.

template<typename T>
double Grappa::SummarizingMetric< T >::mean
protected

Definition at line 51 of file SummarizingMetric.hpp.

template<typename T>
T Grappa::SummarizingMetric< T >::min
protected

Definition at line 53 of file SummarizingMetric.hpp.

template<typename T>
size_t Grappa::SummarizingMetric< T >::n
protected

Definition at line 50 of file SummarizingMetric.hpp.

template<typename T>
T Grappa::SummarizingMetric< T >::value_
protected

Definition at line 49 of file SummarizingMetric.hpp.


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