| 
    Cppcheck
    
   | 
 
A class for check statistics. More...
#include <checkstatistics.h>
 Public Member Functions | |
| CheckStatistics (QObject *parent=nullptr) | |
| void | addItem (const QString &tool, ShowTypes::ShowType type) | 
| Add new checked item to statistics.  More... | |
| void | addChecker (const QString &checker) | 
| Add checker to statistics.  More... | |
| void | clear () | 
| Clear the statistics.  More... | |
| unsigned | getCount (const QString &tool, ShowTypes::ShowType type) const | 
| Return statistics for given type.  More... | |
| const std::set< std::string > & | getActiveCheckers () const | 
| int | getNumberOfActiveCheckers () const | 
| QStringList | getTools () const | 
| Get tools with results.  More... | |
| void | setCheckersReport (QString report) | 
| const QString & | getCheckersReport () const | 
Private Attributes | |
| QMap< QString, unsigned > | mStyle | 
| QMap< QString, unsigned > | mWarning | 
| QMap< QString, unsigned > | mPerformance | 
| QMap< QString, unsigned > | mPortability | 
| QMap< QString, unsigned > | mInformation | 
| QMap< QString, unsigned > | mError | 
| std::set< std::string > | mActiveCheckers | 
| QString | mCheckersReport | 
A class for check statistics.
Definition at line 39 of file checkstatistics.h.
      
  | 
  explicit | 
Definition at line 25 of file checkstatistics.cpp.
References clear().
| void CheckStatistics::addChecker | ( | const QString & | checker | ) | 
Add checker to statistics.
Definition at line 68 of file checkstatistics.cpp.
References mActiveCheckers.
Referenced by ResultsView::error().
| void CheckStatistics::addItem | ( | const QString & | tool, | 
| ShowTypes::ShowType | type | ||
| ) | 
Add new checked item to statistics.
| tool | Tool. | 
| type | Type of the item to add. | 
Definition at line 39 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 73 of file checkstatistics.cpp.
References mActiveCheckers, mCheckersReport, mError, mInformation, mPerformance, mPortability, mStyle, and mWarning.
Referenced by CheckStatistics(), and ResultsView::clear().
      
  | 
  inline | 
Definition at line 71 of file checkstatistics.h.
References mActiveCheckers.
Referenced by ResultsView::checkingFinished().
      
  | 
  inline | 
Definition at line 85 of file checkstatistics.h.
References mCheckersReport.
Referenced by StatsDialog::setStatistics().
| unsigned CheckStatistics::getCount | ( | const QString & | tool, | 
| ShowTypes::ShowType | type | ||
| ) | const | 
Return statistics for given type.
| tool | Tool. | 
| type | Type for which the statistics are returned. | 
Definition at line 85 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(), StatsDialog::pdfExport(), ResultsView::saveStatistics(), and StatsDialog::setStatistics().
      
  | 
  inline | 
Definition at line 75 of file checkstatistics.h.
References mActiveCheckers.
Referenced by StatsDialog::setStatistics().
| QStringList CheckStatistics::getTools | ( | ) | const | 
Get tools with results.
Definition at line 108 of file checkstatistics.cpp.
References mError, mPerformance, mPortability, mStyle, and mWarning.
Referenced by ResultsView::saveStatistics().
      
  | 
  inline | 
Definition at line 82 of file checkstatistics.h.
References mCheckersReport.
Referenced by ResultsView::checkingFinished().
      
  | 
  private | 
Definition at line 96 of file checkstatistics.h.
Referenced by addChecker(), clear(), getActiveCheckers(), and getNumberOfActiveCheckers().
      
  | 
  private | 
Definition at line 97 of file checkstatistics.h.
Referenced by clear(), getCheckersReport(), and setCheckersReport().
      
  | 
  private | 
Definition at line 95 of file checkstatistics.h.
Referenced by addItem(), clear(), getCount(), and getTools().
      
  | 
  private | 
Definition at line 94 of file checkstatistics.h.
Referenced by addItem(), clear(), and getCount().
      
  | 
  private | 
Definition at line 92 of file checkstatistics.h.
Referenced by addItem(), clear(), getCount(), and getTools().
      
  | 
  private | 
Definition at line 93 of file checkstatistics.h.
Referenced by addItem(), clear(), getCount(), and getTools().
      
  | 
  private | 
Definition at line 90 of file checkstatistics.h.
Referenced by addItem(), clear(), getCount(), and getTools().
      
  | 
  private | 
Definition at line 91 of file checkstatistics.h.
Referenced by addItem(), clear(), getCount(), and getTools().