Profiling::MinMax< T > Class Template Reference

Class to track minimum and maximum values of a set of data, with average, total and count. More...

#include <MinMax.h>

Inheritance diagram for Profiling::MinMax< T >:
[legend]
Collaboration diagram for Profiling::MinMax< T >:
[legend]

Public Member Functions

 MinMax (const String &title)
 
const StringgetTitle () const
 
void clear ()
 
void update (T value)
 
getMin () const
 
getMax () const
 
getTotal () const
 
getAverage () const
 
unsigned getCount () const
 
size_t printTo (Print &p) const override
 

Detailed Description

template<typename T>
class Profiling::MinMax< T >

Class to track minimum and maximum values of a set of data, with average, total and count.

Constructor & Destructor Documentation

◆ MinMax()

template<typename T >
Profiling::MinMax< T >::MinMax ( const String title)
inline

Member Function Documentation

◆ clear()

template<typename T >
void Profiling::MinMax< T >::clear ( )

◆ getAverage()

template<typename T >
T Profiling::MinMax< T >::getAverage ( ) const

◆ getCount()

template<typename T >
unsigned Profiling::MinMax< T >::getCount ( ) const
inline

◆ getMax()

template<typename T >
T Profiling::MinMax< T >::getMax ( ) const
inline

◆ getMin()

template<typename T >
T Profiling::MinMax< T >::getMin ( ) const
inline

◆ getTitle()

template<typename T >
const String& Profiling::MinMax< T >::getTitle ( ) const
inline

◆ getTotal()

template<typename T >
T Profiling::MinMax< T >::getTotal ( ) const
inline

◆ printTo()

template<typename T >
size_t Profiling::MinMax< T >::printTo ( Print p) const
overridevirtual

Implements Printable.

Reimplemented in Profiling::MinMaxTimes< Timer >.

◆ update()

template<typename T >
void Profiling::MinMax< T >::update ( value)

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