Isis Developer Reference
GroupedStatistics.h
Go to the documentation of this file.
1 #ifndef GroupedStatistics_h
2 #define GroupedStatistics_h
3 
9 /* SPDX-License-Identifier: CC0-1.0 */
10 
11 // Global forward declarations
12 template< class A, class B > class QMap;
13 template< class A > class QVector;
14 class QString;
15 
16 namespace Isis {
17 
18  // Isis forward declarations
19  class Statistics;
20 
42  public:
46 
47  void AddStatistic(const QString &statType, const double &newStat);
48  const Statistics &GetStatistics(const QString &statType) const;
50 
52 
53  private:
55  QMap< QString, Statistics > * groupedStats;
56  };
57 };
58 
59 #endif
60 
Isis::GroupedStatistics::AddStatistic
void AddStatistic(const QString &statType, const double &newStat)
Add a new data entry for a given type of data.
Definition: GroupedStatistics.cpp:51
Isis::Statistics
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:94
Isis::GroupedStatistics::GroupedStatistics
GroupedStatistics()
construct a GroupedStatistics object
Definition: GroupedStatistics.cpp:17
Isis::GroupedStatistics
Grouped Statistics.
Definition: GroupedStatistics.h:41
Isis::GroupedStatistics::GetStatistics
const Statistics & GetStatistics(const QString &statType) const
Get statistics for a given type of data.
Definition: GroupedStatistics.cpp:66
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::IException
Isis exception class.
Definition: IException.h:91
Statistics.h
Isis::IException::Programmer
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
Isis::GroupedStatistics::GetStatisticTypes
const QVector< QString > GetStatisticTypes() const
Return a list of all the different statistic tyes that this GroupedStatistics has.
Definition: GroupedStatistics.cpp:87
QMap
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:22
Isis::GroupedStatistics::operator=
GroupedStatistics & operator=(const GroupedStatistics &other)
Assign a GroupedStatistics with another GroupedStatistics using =.
Definition: GroupedStatistics.cpp:107
Isis::GroupedStatistics::~GroupedStatistics
~GroupedStatistics()
destroy a GroupedStatistics object
Definition: GroupedStatistics.cpp:35
QVector< QString >
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
GroupedStatistics.h