Simple statistic that count events.
More...
#include <Count.h>
|
|
constexpr | Count (const std::string &name, const int64_t initial_value) |
|
constexpr | Count (const Count &other) |
|
constexpr | Count (const std::string &name) |
|
Count & | operator= (const Count &other) |
|
Count & | operator+= (const int64_t &delta) |
|
Count & | operator-= (const int64_t &delta) |
|
Count & | operator++ () |
|
Count | operator++ (int) |
|
Count & | operator-- () |
|
Count | operator-- (int) |
|
Count | operator- (const Count &other) const |
|
Count | operator+ (const int64_t &delta) const |
| std::unique_ptr< Statistic > | compute_delta (const Statistic &other) const override |
| void | assign_from (const Statistic &other) override |
|
int64_t | operator() () const |
|
int64_t | value () const |
| std::unique_ptr< Statistic > | clone () const override |
| | Create a new copy of this statistic.
|
| glz::generic_u64 | dump_representation () const override |
|
std::string_view | name () const |
|
void | name (std::string_view new_name) |
|
|
int64_t | val {0} |
|
std::string | name_ |
|
|
| Statistic (const std::string_view name) |
Simple statistic that count events.
◆ assign_from()
| void Simo::Statistics::Count::assign_from |
( |
const Statistic & | other | ) |
|
|
overridevirtual |
◆ clone()
| std::unique_ptr< Statistic > Simo::Statistics::Count::clone |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
◆ compute_delta()
| std::unique_ptr< Statistic > Simo::Statistics::Count::compute_delta |
( |
const Statistic & | other | ) |
const |
|
nodiscardoverridevirtual |
◆ dump_representation()
| glz::generic_u64 Simo::Statistics::Count::dump_representation |
( |
| ) |
const |
|
nodiscardoverridevirtual |
The documentation for this class was generated from the following files:
- include/Simo/statistics/Count.h
- src/statistics/Count.cc