Represents a single tracked statistic. More...
#include <statistics.hpp>
Public Member Functions | |
| Stat ()=default | |
| Default-constructs a Stat. | |
| auto | operator<=> (Stat const &) const noexcept=default |
| Three-way comparison operator. More... | |
| void | add (double value) |
| Adds a value to this statistic. More... | |
| std::size_t | count () const noexcept |
| Returns the number of updates applied to this statistic. More... | |
| double | value () const noexcept |
| Returns the total accumulated value. More... | |
| double | max () const noexcept |
Returns the maximum value seen across all add() calls. More... | |
Represents a single tracked statistic.
Definition at line 201 of file statistics.hpp.
|
inline |
Adds a value to this statistic.
| value | The value to add. |
Definition at line 222 of file statistics.hpp.
|
inlinenoexcept |
Returns the number of updates applied to this statistic.
add() was called. Definition at line 233 of file statistics.hpp.
|
inlinenoexcept |
Returns the maximum value seen across all add() calls.
add() was never called. Definition at line 252 of file statistics.hpp.
|
defaultnoexcept |
Three-way comparison operator.
Performs memberwise comparison of all data members.
|
inlinenoexcept |
Returns the total accumulated value.
Definition at line 242 of file statistics.hpp.