40 #ifndef __BASE_STATS_GROUP_HH__ 41 #define __BASE_STATS_GROUP_HH__ 69 #define ADD_STAT(n, ...) n(this, # n, __VA_ARGS__) 182 #endif // __BASE_STATS_GROUP_HH__ const std::string & name()
const std::map< std::string, Group * > & getStatGroups() const
Get all child groups associated with this object.
std::map< std::string, Group * > statGroups
virtual void regStats()
Callback to set stat parameters.
const std::vector< Info * > & getStats() const
Get all stats associated with this object.
void mergeStatGroup(Group *block)
Merge the contents (stats & children) of a block to this block.
void addStat(Stats::Info *info)
Register a stat with this group.
virtual void preDumpStats()
Callback before stats are dumped.
virtual void resetStats()
Callback to reset stats.
std::vector< Group * > mergedStatGroups
Group & operator=(const Group &)=delete
Group *const mergedParent
Parent pointer if merged into parent.
void addStatGroup(const char *name, Group *block)
Add a stat block as a child of this block.
std::vector< Info * > stats