44 std::lock_guard<std::mutex> m(mutex_);
54 std::lock_guard<std::mutex> m(mutex_);
66 std::lock_guard<std::mutex> m(mutex_);
76 std::lock_guard<std::mutex> m(mutex_);
88 std::lock_guard<std::mutex> m(mutex_);
98 std::lock_guard<std::mutex> m(mutex_);
110 std::lock_guard<std::mutex> m(mutex_);
122 std::lock_guard<std::mutex> m(mutex_);
124 value_ -= rhs.value_;
132 std::lock_guard<std::mutex> m(mutex_);
144 std::lock_guard<std::mutex> m(mutex_);
146 value_ *= rhs.value_;
154 std::lock_guard<std::mutex> m(mutex_);
166 std::lock_guard<std::mutex> m(mutex_);
168 value_ /= rhs.value_;
176 std::lock_guard<std::mutex> m(mutex_);
186 std::lock_guard<std::mutex> m(mutex_);
196 std::lock_guard<std::mutex> m(mutex_);
205 std::lock_guard<std::mutex> m(mutex_);
213 std::lock_guard<std::mutex> m(mutex_);
223 std::lock_guard<std::mutex> m(mutex_);
231 std::lock_guard<std::mutex> m(mutex_);
241 std::lock_guard<std::mutex> m(mutex_);
249 std::lock_guard<std::mutex> m(mutex_);
260 std::lock_guard<std::mutex> m(mutex_);
271 std::lock_guard<std::mutex> m(mutex_);
273 return value_ == rhs.value_;
285 std::lock_guard<std::mutex> m(mutex_);
287 return value_ < rhs.value_;
293 std::lock_guard<std::mutex> m(mutex_);
295 return value_ <= rhs.value_;
301 std::lock_guard<std::mutex> m(mutex_);
303 return value_ > rhs.value_;
309 std::lock_guard<std::mutex> m(mutex_);
311 return value_ >= rhs.value_;
317 std::lock_guard<std::mutex> m(mutex_);
319 return value_ == rhs;
325 return value_ != rhs;
331 std::lock_guard<std::mutex> m(mutex_);
339 std::lock_guard<std::mutex> m(mutex_);
341 return value_ <= rhs;
347 std::lock_guard<std::mutex> m(mutex_);
355 std::lock_guard<std::mutex> m(mutex_);
357 return value_ >= rhs;
363 std::lock_guard<std::mutex> m(mutex_);
371 std::lock_guard<std::mutex> m(mutex_);
379 std::lock_guard<std::mutex> m(mutex_);
385 template<
typename Compare>
390 std::lock_guard<std::mutex> m(mutex_);
392 if(cmp(value_,expected))
403 template<
typename Compare>
410 std::lock_guard<std::mutex> m(mutex_);
412 if(cmp(value_,expected))
426 template <
typename T>
427 bool operator<=(const T & val, const EMANE::StatisticNumeric<T> & stat)
432 template <
typename T>
438 template <
typename T>
441 return val > stat.
get();
444 template <
typename T>
445 bool operator<(const T & val, const EMANE::StatisticNumeric<T> & stat)
447 return val > stat.getValue();
450 template <
typename T>
453 return val == stat.getValue();
456 template <
typename T>
459 return val != stat.getValue();
462 template <
typename T>
465 return val + stat.getValue();
468 template <
typename T>
471 return val - stat.getValue();
474 template <
typename T>
477 return val * stat.getValue();
480 template <
typename T>
483 return val / stat.getValue();
486 template <
typename T>
489 return val += stat.getValue();
492 template <
typename T>
495 return val -= stat.getValue();
498 template <
typename T>
501 return val *= stat.getValue();
504 template <
typename T>
507 return val /= stat.getValue();
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)
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)
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.