cpp-common
Public Member Functions | Private Attributes | List of all members
nvsl::StatsNamedVector Class Reference

Represents a vector of stats, each with a name. More...

#include <stats.hh>

Inheritance diagram for nvsl::StatsNamedVector:
Inheritance graph
[legend]
Collaboration diagram for nvsl::StatsNamedVector:
Collaboration graph
[legend]

Public Member Functions

 StatsNamedVector (bool reg=true)
 
void init (const std::string &name, const std::string &desc, time_unit unit=time_unit::any_unit)
 
StatsScalaroperator[] (const std::string &memb_name)
 
std::string str () const override
 Get the string representation of the stat.
 
std::string latex (const std::string &prefix="") const override
 
 StatsNamedVector (bool reg=true)
 
void init (const std::string &name, const std::string &desc, time_unit unit=time_unit::any_unit)
 
StatsScalaroperator[] (const std::string &memb_name)
 
std::string str () const override
 Get the string representation of the stat.
 
std::string latex (const std::string &prefix="") const override
 
- Public Member Functions inherited from nvsl::StatsBase
 StatsBase (bool reg)
 
void init (const std::string &name, const std::string &desc)
 
virtual double avg () const
 
 StatsBase (bool reg)
 
void init (const std::string &name, const std::string &desc)
 
virtual double avg () const
 

Private Attributes

std::map< std::string, StatsScalarvec
 
time_unit unit
 

Additional Inherited Members

- Protected Attributes inherited from nvsl::StatsBase
std::string stat_name
 
std::string stat_desc
 

Detailed Description

Represents a vector of stats, each with a name.

Definition at line 322 of file stats.hh.


The documentation for this class was generated from the following file: