Cppcheck
Public Member Functions | Private Attributes
CheckStatistics Class Reference

A class for check statistics. More...

#include <checkstatistics.h>

List of all members.

Public Member Functions

 CheckStatistics (QObject *parent=NULL)
void AddItem (ShowTypes::ShowType type)
 Add new checked item to statistics.
void Clear ()
 Clear the statistics.
unsigned GetCount (ShowTypes::ShowType type) const
 Return statistics for given type.

Private Attributes

unsigned mStyle
unsigned mWarning
unsigned mPerformance
unsigned mPortability
unsigned mInformation
unsigned mError

Detailed Description

A class for check statistics.

Definition at line 31 of file checkstatistics.h.


Constructor & Destructor Documentation

CheckStatistics::CheckStatistics ( QObject *  parent = NULL)

Definition at line 22 of file checkstatistics.cpp.

References Clear().


Member Function Documentation

Clear the statistics.

Definition at line 56 of file checkstatistics.cpp.

References mError, mInformation, mPerformance, mPortability, mStyle, and mWarning.

Referenced by CheckStatistics(), and ResultsView::Clear().

Return statistics for given type.

Parameters:
typeType for which the statistics are returned.
Returns:
Number of items of given type.

Definition at line 66 of file checkstatistics.cpp.

References mError, mInformation, mPerformance, mPortability, mStyle, mWarning, ShowTypes::ShowErrors, ShowTypes::ShowInformation, ShowTypes::ShowNone, ShowTypes::ShowPerformance, ShowTypes::ShowPortability, ShowTypes::ShowStyle, and ShowTypes::ShowWarnings.

Referenced by StatsDialog::copyToClipboard(), and StatsDialog::setStatistics().


Member Data Documentation

unsigned CheckStatistics::mError [private]

Definition at line 62 of file checkstatistics.h.

Referenced by AddItem(), Clear(), and GetCount().

unsigned CheckStatistics::mInformation [private]

Definition at line 61 of file checkstatistics.h.

Referenced by AddItem(), Clear(), and GetCount().

unsigned CheckStatistics::mPerformance [private]

Definition at line 59 of file checkstatistics.h.

Referenced by AddItem(), Clear(), and GetCount().

unsigned CheckStatistics::mPortability [private]

Definition at line 60 of file checkstatistics.h.

Referenced by AddItem(), Clear(), and GetCount().

unsigned CheckStatistics::mStyle [private]

Definition at line 57 of file checkstatistics.h.

Referenced by AddItem(), Clear(), and GetCount().

unsigned CheckStatistics::mWarning [private]

Definition at line 58 of file checkstatistics.h.

Referenced by AddItem(), Clear(), and GetCount().


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