Commit b3bb27c4 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

clang tidy

parent 966fa319
......@@ -4,7 +4,7 @@
#include "WelfordAggregate.hpp"
#include <vector>
#include <math.h>
#include <cmath>
#include <map>
......@@ -14,7 +14,7 @@ protected:
std::map<int, T> _levelMap{};
public:
LevelMap() {};
LevelMap() = default;;
~LevelMap() {
clear();
......@@ -118,7 +118,7 @@ struct EstimatorMap;
struct SampleCounterMap : public LevelMap<SampleCounter> {
SampleCounterMap() {};
SampleCounterMap() = default;;
SampleCounterMap(std::initializer_list<std::pair<int, SampleCounter>> ctrs) :
LevelMap<SampleCounter>(ctrs) {};
......@@ -132,12 +132,12 @@ struct MeanMap : public LevelMap<Mean> {
double Q = 0.0;
double Cost = 0.0;
MeanMap() {};
MeanMap() = default;;
MeanMap(std::initializer_list<std::pair<int, Mean>> avgs) :
LevelMap<Mean>(avgs) {};
MeanMap(const EstimatorMap &estimatorMap) {
explicit MeanMap(const EstimatorMap &estimatorMap) {
Update(estimatorMap);
};
......@@ -146,12 +146,12 @@ struct MeanMap : public LevelMap<Mean> {
struct SVarMap : public LevelMap<SVar> {
SVarMap() {};
SVarMap() = default;;
SVarMap(std::initializer_list<std::pair<int, SVar>> vars) :
LevelMap<SVar>(vars) {};
SVarMap(const EstimatorMap &estimatorMap) {
explicit SVarMap(const EstimatorMap &estimatorMap) {
Update(estimatorMap);
};
......@@ -160,12 +160,12 @@ struct SVarMap : public LevelMap<SVar> {
struct KurtosisMap : LevelMap<Kurtosis> {
KurtosisMap() {};
KurtosisMap() = default;;
KurtosisMap(std::initializer_list<std::pair<int, Kurtosis>> kurtosis) :
LevelMap<Kurtosis>(kurtosis) {};
KurtosisMap(const EstimatorMap &estimatorMap) {
explicit KurtosisMap(const EstimatorMap &estimatorMap) {
Update(estimatorMap);
};
......@@ -181,9 +181,9 @@ struct MultilevelData {
KurtosisMap kurtosis;
MultilevelData() {};
MultilevelData() = default;;
MultilevelData(const EstimatorMap &estimatorMap) {
explicit MultilevelData(const EstimatorMap &estimatorMap) {
ExtractDataFrom(estimatorMap);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment