Cppcheck
Public Member Functions | Private Attributes | List of all members
TimerResults Class Reference

#include <timer.h>

Inheritance diagram for TimerResults:
TimerResultsIntf

Public Member Functions

 TimerResults ()=default
 
void showResults (SHOWTIME_MODES mode) const
 
void addResults (const std::string &str, std::clock_t clocks) override
 
void reset ()
 
- Public Member Functions inherited from TimerResultsIntf
virtual ~TimerResultsIntf ()=default
 

Private Attributes

std::map< std::string, TimerResultsDatamResults
 
std::mutex mResultsSync
 

Detailed Description

Definition at line 56 of file timer.h.

Constructor & Destructor Documentation

◆ TimerResults()

TimerResults::TimerResults ( )
default

Member Function Documentation

◆ addResults()

void TimerResults::addResults ( const std::string &  str,
std::clock_t  clocks 
)
overridevirtual

Implements TimerResultsIntf.

Definition at line 91 of file timer.cpp.

References mResults, and mResultsSync.

◆ reset()

void TimerResults::reset ( )

Definition at line 99 of file timer.cpp.

References mResults, and mResultsSync.

Referenced by CppCheck::resetTimerResults().

◆ showResults()

void TimerResults::showResults ( SHOWTIME_MODES  mode) const

Member Data Documentation

◆ mResults

std::map<std::string, TimerResultsData> TimerResults::mResults
private

Definition at line 66 of file timer.h.

Referenced by addResults(), reset(), and showResults().

◆ mResultsSync

std::mutex TimerResults::mResultsSync
mutableprivate

Definition at line 67 of file timer.h.

Referenced by addResults(), reset(), and showResults().


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