|
Cppcheck
|
A class for check statistics. More...
#include <checkstatistics.h>
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 |
A class for check statistics.
Definition at line 31 of file checkstatistics.h.
| CheckStatistics::CheckStatistics | ( | QObject * | parent = NULL | ) |
Definition at line 22 of file checkstatistics.cpp.
References Clear().
| void CheckStatistics::AddItem | ( | ShowTypes::ShowType | type | ) |
Add new checked item to statistics.
| type | Type of the item to add. |
Definition at line 28 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 ResultsView::Error().
| void CheckStatistics::Clear | ( | ) |
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().
| unsigned CheckStatistics::GetCount | ( | ShowTypes::ShowType | type | ) | const |
Return statistics for given type.
| type | Type for which the statistics are returned. |
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().
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().
1.7.6.1