EMANE  1.0.1
EMANE::StatisticNumeric< T > Class Template Reference

Defines a numeric statistic and its operations. More...

#include <statisticnumeric.h>

Inheritance diagram for EMANE::StatisticNumeric< T >:
EMANE::Statistic

Public Member Functions

 ~StatisticNumeric ()
 
StatisticNumeric< T > & operator++ ()
 
const T operator++ (int)
 
StatisticNumeric< T > & operator-- ()
 
const T operator-- (int)
 
StatisticNumeric< T > & operator+= (const StatisticNumeric< T > &rhs)
 
const T operator+ (const StatisticNumeric< T > &rhs) const
 
const T operator- (const StatisticNumeric< T > &rhs) const
 
StatisticNumeric< T > & operator-= (const StatisticNumeric< T > &rhs)
 
const T operator* (const StatisticNumeric< T > &rhs) const
 
StatisticNumeric< T > & operator*= (const StatisticNumeric< T > &rhs)
 
const T operator/ (const StatisticNumeric< T > &rhs) const
 
StatisticNumeric< T > & operator/= (const StatisticNumeric< T > &rhs)
 
StatisticNumeric< T > & operator= (const StatisticNumeric< T > &rhs)
 
StatisticNumeric< T > & operator+= (const T &rhs)
 
operator+ (const T &rhs) const
 
operator- (const T &rhs) const
 
StatisticNumeric< T > & operator-= (const T &rhs)
 
operator* (const T &rhs) const
 
StatisticNumeric< T > & operator*= (const T &rhs)
 
operator/ (const T &rhs) const
 
StatisticNumeric< T > & operator/= (const T &rhs)
 
StatisticNumeric< T > & operator= (const T &rhs)
 
bool operator== (const StatisticNumeric< T > &rhs) const
 
bool operator!= (const StatisticNumeric< T > &rhs) const
 
bool operator< (const StatisticNumeric< T > &rhs) const
 
bool operator<= (const StatisticNumeric< T > &rhs) const
 
bool operator> (const StatisticNumeric< T > &rhs) const
 
bool operator>= (const StatisticNumeric< T > &rhs) const
 
bool operator== (const T &rhs) const
 
bool operator!= (const T &rhs) const
 
bool operator< (const T &rhs) const
 
bool operator<= (const T &rhs) const
 
bool operator> (const T &rhs) const
 
bool operator>= (const T &rhs) const
 
get () const
 
Any asAny () const override
 
void clear () override
 
template<typename Compare = std::equal_to<T>>
bool compareExchange (const T &expected, const T &desired)
 
template<typename Compare = std::equal_to<T>>
bool compareExchange (const T &expected, const T &desired, const T &alternate)
 

Detailed Description

template<typename T>
class EMANE::StatisticNumeric< T >

Defines a numeric statistic and its operations.

Definition at line 53 of file statisticnumeric.h.

Constructor & Destructor Documentation

◆ ~StatisticNumeric()

template<typename T >
EMANE::StatisticNumeric< T >::~StatisticNumeric ( )

Definition at line 39 of file statisticnumeric.inl.

Member Function Documentation

◆ asAny()

template<typename T >
EMANE::Any EMANE::StatisticNumeric< T >::asAny ( ) const
overridevirtual

Gets a statistic value as an Any

Returns
Statistic value as an Any

Implements EMANE::Statistic.

Definition at line 369 of file statisticnumeric.inl.

◆ clear()

template<typename T >
void EMANE::StatisticNumeric< T >::clear ( )
overridevirtual

Clears a statistic value

Implements EMANE::Statistic.

Definition at line 377 of file statisticnumeric.inl.

◆ compareExchange() [1/2]

template<typename T>
template<typename Compare >
bool EMANE::StatisticNumeric< T >::compareExchange ( const T &  expected,
const T &  desired 
)

Definition at line 386 of file statisticnumeric.inl.

◆ compareExchange() [2/2]

template<typename T>
template<typename Compare >
bool EMANE::StatisticNumeric< T >::compareExchange ( const T &  expected,
const T &  desired,
const T &  alternate 
)

Definition at line 404 of file statisticnumeric.inl.

◆ get()

template<typename T >
T EMANE::StatisticNumeric< T >::get ( ) const

Gets the underlying statistic value

Returns
value

Definition at line 361 of file statisticnumeric.inl.

◆ operator!=() [1/2]

template<typename T>
bool EMANE::StatisticNumeric< T >::operator!= ( const StatisticNumeric< T > &  rhs) const

Definition at line 277 of file statisticnumeric.inl.

◆ operator!=() [2/2]

template<typename T>
bool EMANE::StatisticNumeric< T >::operator!= ( const T &  rhs) const

Definition at line 323 of file statisticnumeric.inl.

◆ operator*() [1/2]

template<typename T>
const T EMANE::StatisticNumeric< T >::operator* ( const StatisticNumeric< T > &  rhs) const

Definition at line 130 of file statisticnumeric.inl.

◆ operator*() [2/2]

template<typename T>
T EMANE::StatisticNumeric< T >::operator* ( const T &  rhs) const

Definition at line 221 of file statisticnumeric.inl.

◆ operator*=() [1/2]

template<typename T>
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator*= ( const StatisticNumeric< T > &  rhs)

Definition at line 142 of file statisticnumeric.inl.

◆ operator*=() [2/2]

template<typename T>
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator*= ( const T &  rhs)

Definition at line 229 of file statisticnumeric.inl.

◆ operator+() [1/2]

template<typename T>
const T EMANE::StatisticNumeric< T >::operator+ ( const StatisticNumeric< T > &  rhs) const

Definition at line 74 of file statisticnumeric.inl.

◆ operator+() [2/2]

template<typename T>
T EMANE::StatisticNumeric< T >::operator+ ( const T &  rhs) const

Definition at line 194 of file statisticnumeric.inl.

◆ operator++() [1/2]

template<typename T >
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator++ ( )

Definition at line 42 of file statisticnumeric.inl.

◆ operator++() [2/2]

template<typename T >
const T EMANE::StatisticNumeric< T >::operator++ ( int  )

Definition at line 52 of file statisticnumeric.inl.

◆ operator+=() [1/2]

template<typename T>
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator+= ( const StatisticNumeric< T > &  rhs)

Definition at line 64 of file statisticnumeric.inl.

◆ operator+=() [2/2]

template<typename T>
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator+= ( const T &  rhs)

Definition at line 184 of file statisticnumeric.inl.

◆ operator-() [1/2]

template<typename T>
const T EMANE::StatisticNumeric< T >::operator- ( const StatisticNumeric< T > &  rhs) const

Definition at line 108 of file statisticnumeric.inl.

◆ operator-() [2/2]

template<typename T>
T EMANE::StatisticNumeric< T >::operator- ( const T &  rhs) const

Definition at line 203 of file statisticnumeric.inl.

◆ operator--() [1/2]

template<typename T >
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator-- ( )

Definition at line 86 of file statisticnumeric.inl.

◆ operator--() [2/2]

template<typename T >
const T EMANE::StatisticNumeric< T >::operator-- ( int  )

Definition at line 96 of file statisticnumeric.inl.

◆ operator-=() [1/2]

template<typename T>
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator-= ( const StatisticNumeric< T > &  rhs)

Definition at line 120 of file statisticnumeric.inl.

◆ operator-=() [2/2]

template<typename T>
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator-= ( const T &  rhs)

Definition at line 211 of file statisticnumeric.inl.

◆ operator/() [1/2]

template<typename T>
const T EMANE::StatisticNumeric< T >::operator/ ( const StatisticNumeric< T > &  rhs) const

Definition at line 152 of file statisticnumeric.inl.

◆ operator/() [2/2]

template<typename T>
T EMANE::StatisticNumeric< T >::operator/ ( const T &  rhs) const

Definition at line 239 of file statisticnumeric.inl.

◆ operator/=() [1/2]

template<typename T>
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator/= ( const StatisticNumeric< T > &  rhs)

Definition at line 164 of file statisticnumeric.inl.

◆ operator/=() [2/2]

template<typename T>
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator/= ( const T &  rhs)

Definition at line 247 of file statisticnumeric.inl.

◆ operator<() [1/2]

template<typename T>
bool EMANE::StatisticNumeric< T >::operator< ( const StatisticNumeric< T > &  rhs) const

Definition at line 283 of file statisticnumeric.inl.

◆ operator<() [2/2]

template<typename T>
bool EMANE::StatisticNumeric< T >::operator< ( const T &  rhs) const

Definition at line 329 of file statisticnumeric.inl.

◆ operator<=() [1/2]

template<typename T>
bool EMANE::StatisticNumeric< T >::operator<= ( const StatisticNumeric< T > &  rhs) const

Definition at line 291 of file statisticnumeric.inl.

◆ operator<=() [2/2]

template<typename T>
bool EMANE::StatisticNumeric< T >::operator<= ( const T &  rhs) const

Definition at line 337 of file statisticnumeric.inl.

◆ operator=() [1/2]

template<typename T>
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator= ( const StatisticNumeric< T > &  rhs)

Definition at line 174 of file statisticnumeric.inl.

◆ operator=() [2/2]

template<typename T>
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator= ( const T &  rhs)

Definition at line 258 of file statisticnumeric.inl.

◆ operator==() [1/2]

template<typename T>
bool EMANE::StatisticNumeric< T >::operator== ( const StatisticNumeric< T > &  rhs) const

Definition at line 269 of file statisticnumeric.inl.

◆ operator==() [2/2]

template<typename T>
bool EMANE::StatisticNumeric< T >::operator== ( const T &  rhs) const

Definition at line 315 of file statisticnumeric.inl.

◆ operator>() [1/2]

template<typename T>
bool EMANE::StatisticNumeric< T >::operator> ( const StatisticNumeric< T > &  rhs) const

Definition at line 299 of file statisticnumeric.inl.

◆ operator>() [2/2]

template<typename T>
bool EMANE::StatisticNumeric< T >::operator> ( const T &  rhs) const

Definition at line 345 of file statisticnumeric.inl.

◆ operator>=() [1/2]

template<typename T>
bool EMANE::StatisticNumeric< T >::operator>= ( const StatisticNumeric< T > &  rhs) const

Definition at line 307 of file statisticnumeric.inl.

◆ operator>=() [2/2]

template<typename T>
bool EMANE::StatisticNumeric< T >::operator>= ( const T &  rhs) const

Definition at line 353 of file statisticnumeric.inl.


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