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

Counts operations. More...

#include <stats.hh>

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

Public Member Functions

 Counter (bool reg=true)
 
void init (const std::string &name, const std::string &desc)
 
Counteroperator++ ()
 
Counter operator++ (int)
 
size_t value () const
 
std::string str () const override
 Get the string representation of the stat.
 
- Public Member Functions inherited from nvsl::StatsBase
 StatsBase (bool reg)
 
void init (const std::string &name, const std::string &desc)
 
virtual double avg () const
 
virtual std::string latex (const std::string &prefix="") const
 
 StatsBase (bool reg)
 
void init (const std::string &name, const std::string &desc)
 
virtual double avg () const
 
virtual std::string latex (const std::string &prefix="") const
 

Private Attributes

size_t counter
 

Additional Inherited Members

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

Detailed Description

Counts operations.

Definition at line 187 of file stats.hh.


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