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 468 of file statistics.hh.
Stats::StatStor::StatStor |
( |
Info * |
info | ) |
|
|
inline |
Builds this storage element and calls the base constructor of the datatype.
Definition at line 482 of file statistics.hh.
void Stats::StatStor::dec |
( |
Counter |
val | ) |
|
|
inline |
void Stats::StatStor::inc |
( |
Counter |
val | ) |
|
|
inline |
void Stats::StatStor::prepare |
( |
Info * |
info | ) |
|
|
inline |
Prepare stat data for dumping or serialization.
Definition at line 514 of file statistics.hh.
void Stats::StatStor::reset |
( |
Info * |
info | ) |
|
|
inline |
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 510 of file statistics.hh.
References data.
void Stats::StatStor::set |
( |
Counter |
val | ) |
|
|
inline |
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 505 of file statistics.hh.
References data.
bool Stats::StatStor::zero |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: