Templatized storage and interface for a simple scalar stat.
More...
#include <statistics.hh>
Templatized storage and interface for a simple scalar stat.
Definition at line 489 of file statistics.hh.
◆ StatStor()
Stats::StatStor::StatStor |
( |
Info * |
info | ) |
|
|
inline |
Builds this storage element and calls the base constructor of the datatype.
Definition at line 503 of file statistics.hh.
◆ dec()
void Stats::StatStor::dec |
( |
Counter |
val | ) |
|
|
inline |
◆ inc()
void Stats::StatStor::inc |
( |
Counter |
val | ) |
|
|
inline |
◆ prepare()
void Stats::StatStor::prepare |
( |
Info * |
info | ) |
|
|
inline |
Prepare stat data for dumping or serialization.
Definition at line 535 of file statistics.hh.
◆ reset()
void Stats::StatStor::reset |
( |
Info * |
info | ) |
|
|
inline |
◆ result()
Result Stats::StatStor::result |
( |
| ) |
const |
|
inline |
Return the value of this stat as a result type.
- Returns
- The value of this stat.
Definition at line 531 of file statistics.hh.
References data.
◆ set()
void Stats::StatStor::set |
( |
Counter |
val | ) |
|
|
inline |
◆ value()
Counter Stats::StatStor::value |
( |
| ) |
const |
|
inline |
Return the value of this stat as its base type.
- Returns
- The value of this stat.
Definition at line 526 of file statistics.hh.
References data.
◆ zero()
bool Stats::StatStor::zero |
( |
| ) |
const |
|
inline |
◆ data
The documentation for this class was generated from the following file: