16StatisticManager::StatisticManager()
44 for (
unsigned i=0; i<
stats.size(); i++)
45 if (
stats[i]->getName() == name)
51 for (
unsigned i=0; i<
stats.size(); i++)
52 if (
stats[i]->getName() == name)
68 : name{name}, shortName{shortName} {
static StatisticManager & getStatisticManager()
std::vector< Statistic * > stats
int getStatisticID(const std::string &name) const
void incrementStatistic(Statistic &s, uint64_t addend)
Statistic * getStatisticByName(const std::string &name) const
void useIndexedStats(unsigned totalIndices)
void registerStatistic(Statistic &s)
uint64_t getValue(const Statistic &s) const
Statistic & operator+=(std::uint64_t addend)
operator+= - Increment the statistic by
std::uint64_t getValue() const
getValue - Get the current primary statistic value.
Statistic(const std::string &name, const std::string &shortName)
StatisticManager * theStatisticManager