34 #ifndef EMANESTATISTICNUMERIC_HEADER_ 35 #define EMANESTATISTICNUMERIC_HEADER_ 43 class StatisticRegistrar;
106 bool operator<(const StatisticNumeric<T> & rhs)
const;
108 bool operator<=(const StatisticNumeric<T> & rhs)
const;
135 void clear()
override;
137 template<
typename Compare = std::equal_to<T>>
140 template<
typename Compare = std::equal_to<T>>
143 const T & alternate);
147 mutable std::mutex mutex_;
155 template <
typename T>
156 bool operator<=(const T & val, const EMANE::StatisticNumeric<T> & stat);
158 template <
typename T>
161 template <
typename T>
164 template <
typename T>
165 bool operator<(const T & val, const EMANE::StatisticNumeric<T> & stat);
167 template <
typename T>
170 template <
typename T>
173 template <
typename T>
176 template <
typename T>
179 template <
typename T>
182 template <
typename T>
185 template <
typename T>
188 template <
typename T>
191 template <
typename T>
194 template <
typename T>
199 #endif // EMANESTATISTICNUMERIC_T_HEADER_
StatisticNumeric< T > & operator--()
StatisticNumeric< T > & operator++()
bool operator<=(const StatisticNumeric< T > &rhs) const
Any asAny() const override
bool operator>(const StatisticNumeric< T > &rhs) const
StatisticNumeric< T > & operator-=(const StatisticNumeric< T > &rhs)
The StatisticRegistrar allows NEM layers to register statistics and statistic tables. Statistics and Statistic tables are owned by the emulator framework and a borrowed reference is returned to the registering NEM layer.
StatisticNumeric< T > & operator/=(const StatisticNumeric< T > &rhs)
const T operator+(const StatisticNumeric< T > &rhs) const
bool operator>=(const StatisticNumeric< T > &rhs) const
StatisticNumeric< T > & operator*=(const StatisticNumeric< T > &rhs)
The Statistic interface is the base class of all statistics. It provided methods to access and clear ...
bool compareExchange(const T &expected, const T &desired)
const T operator-(const StatisticNumeric< T > &rhs) const
The Any class can contain an instance of one of any type in its support type set. ...
bool operator<(const StatisticNumeric< T > &rhs) const
StatisticNumeric< T > & operator+=(const StatisticNumeric< T > &rhs)
bool operator!=(const StatisticNumeric< T > &rhs) const
const T operator/(const StatisticNumeric< T > &rhs) const
const T operator*(const StatisticNumeric< T > &rhs) const
StatisticNumeric< T > & operator=(const StatisticNumeric< T > &rhs)
bool operator==(const StatisticNumeric< T > &rhs) const
Defines a numeric statistic and its operations.