EMANE
1.2.1
|
Defines a numeric statistic and its operations. More...
#include <statisticnumeric.h>
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) |
T | operator+ (const T &rhs) const |
T | operator- (const T &rhs) const |
StatisticNumeric< T > & | operator-= (const T &rhs) |
T | operator* (const T &rhs) const |
StatisticNumeric< T > & | operator*= (const T &rhs) |
T | 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 |
T | 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) |
Defines a numeric statistic and its operations.
Definition at line 53 of file statisticnumeric.h.
EMANE::StatisticNumeric< T >::~StatisticNumeric | ( | ) |
Definition at line 39 of file statisticnumeric.inl.
|
overridevirtual |
Gets a statistic value as an Any
Implements EMANE::Statistic.
Definition at line 369 of file statisticnumeric.inl.
|
overridevirtual |
Clears a statistic value
Implements EMANE::Statistic.
Definition at line 377 of file statisticnumeric.inl.
bool EMANE::StatisticNumeric< T >::compareExchange | ( | const T & | expected, |
const T & | desired | ||
) |
Definition at line 386 of file statisticnumeric.inl.
bool EMANE::StatisticNumeric< T >::compareExchange | ( | const T & | expected, |
const T & | desired, | ||
const T & | alternate | ||
) |
Definition at line 404 of file statisticnumeric.inl.
T EMANE::StatisticNumeric< T >::get | ( | ) | const |
Gets the underlying statistic value
Definition at line 361 of file statisticnumeric.inl.
bool EMANE::StatisticNumeric< T >::operator!= | ( | const StatisticNumeric< T > & | rhs | ) | const |
Definition at line 277 of file statisticnumeric.inl.
bool EMANE::StatisticNumeric< T >::operator!= | ( | const T & | rhs | ) | const |
Definition at line 323 of file statisticnumeric.inl.
const T EMANE::StatisticNumeric< T >::operator* | ( | const StatisticNumeric< T > & | rhs | ) | const |
Definition at line 130 of file statisticnumeric.inl.
T EMANE::StatisticNumeric< T >::operator* | ( | const T & | rhs | ) | const |
Definition at line 221 of file statisticnumeric.inl.
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator*= | ( | const StatisticNumeric< T > & | rhs | ) |
Definition at line 142 of file statisticnumeric.inl.
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator*= | ( | const T & | rhs | ) |
Definition at line 229 of file statisticnumeric.inl.
const T EMANE::StatisticNumeric< T >::operator+ | ( | const StatisticNumeric< T > & | rhs | ) | const |
Definition at line 74 of file statisticnumeric.inl.
T EMANE::StatisticNumeric< T >::operator+ | ( | const T & | rhs | ) | const |
Definition at line 194 of file statisticnumeric.inl.
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator++ | ( | ) |
Definition at line 42 of file statisticnumeric.inl.
const T EMANE::StatisticNumeric< T >::operator++ | ( | int | ) |
Definition at line 52 of file statisticnumeric.inl.
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator+= | ( | const StatisticNumeric< T > & | rhs | ) |
Definition at line 64 of file statisticnumeric.inl.
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator+= | ( | const T & | rhs | ) |
Definition at line 184 of file statisticnumeric.inl.
const T EMANE::StatisticNumeric< T >::operator- | ( | const StatisticNumeric< T > & | rhs | ) | const |
Definition at line 108 of file statisticnumeric.inl.
T EMANE::StatisticNumeric< T >::operator- | ( | const T & | rhs | ) | const |
Definition at line 203 of file statisticnumeric.inl.
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator-- | ( | ) |
Definition at line 86 of file statisticnumeric.inl.
const T EMANE::StatisticNumeric< T >::operator-- | ( | int | ) |
Definition at line 96 of file statisticnumeric.inl.
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator-= | ( | const StatisticNumeric< T > & | rhs | ) |
Definition at line 120 of file statisticnumeric.inl.
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator-= | ( | const T & | rhs | ) |
Definition at line 211 of file statisticnumeric.inl.
const T EMANE::StatisticNumeric< T >::operator/ | ( | const StatisticNumeric< T > & | rhs | ) | const |
Definition at line 152 of file statisticnumeric.inl.
T EMANE::StatisticNumeric< T >::operator/ | ( | const T & | rhs | ) | const |
Definition at line 239 of file statisticnumeric.inl.
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator/= | ( | const StatisticNumeric< T > & | rhs | ) |
Definition at line 164 of file statisticnumeric.inl.
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator/= | ( | const T & | rhs | ) |
Definition at line 247 of file statisticnumeric.inl.
bool EMANE::StatisticNumeric< T >::operator< | ( | const StatisticNumeric< T > & | rhs | ) | const |
Definition at line 283 of file statisticnumeric.inl.
bool EMANE::StatisticNumeric< T >::operator< | ( | const T & | rhs | ) | const |
Definition at line 329 of file statisticnumeric.inl.
bool EMANE::StatisticNumeric< T >::operator<= | ( | const StatisticNumeric< T > & | rhs | ) | const |
Definition at line 291 of file statisticnumeric.inl.
bool EMANE::StatisticNumeric< T >::operator<= | ( | const T & | rhs | ) | const |
Definition at line 337 of file statisticnumeric.inl.
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator= | ( | const StatisticNumeric< T > & | rhs | ) |
Definition at line 174 of file statisticnumeric.inl.
EMANE::StatisticNumeric< T > & EMANE::StatisticNumeric< T >::operator= | ( | const T & | rhs | ) |
Definition at line 258 of file statisticnumeric.inl.
bool EMANE::StatisticNumeric< T >::operator== | ( | const StatisticNumeric< T > & | rhs | ) | const |
Definition at line 269 of file statisticnumeric.inl.
bool EMANE::StatisticNumeric< T >::operator== | ( | const T & | rhs | ) | const |
Definition at line 315 of file statisticnumeric.inl.
bool EMANE::StatisticNumeric< T >::operator> | ( | const StatisticNumeric< T > & | rhs | ) | const |
Definition at line 299 of file statisticnumeric.inl.
bool EMANE::StatisticNumeric< T >::operator> | ( | const T & | rhs | ) | const |
Definition at line 345 of file statisticnumeric.inl.
bool EMANE::StatisticNumeric< T >::operator>= | ( | const StatisticNumeric< T > & | rhs | ) | const |
Definition at line 307 of file statisticnumeric.inl.
bool EMANE::StatisticNumeric< T >::operator>= | ( | const T & | rhs | ) | const |
Definition at line 353 of file statisticnumeric.inl.