From c7e82f965fa40b4a377a6ddedcdeb542a43ae7c5 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Thu, 5 Mar 2009 19:09:53 -0800 Subject: [PATCH] stats: remove the template wart left over from the ancient binning stuff --- src/base/statistics.hh | 42 ++++++++++++++---------------------------- 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/src/base/statistics.hh b/src/base/statistics.hh index 6f2da2f3e..7b69184e9 100644 --- a/src/base/statistics.hh +++ b/src/base/statistics.hh @@ -2350,8 +2350,7 @@ class SumNode : public Node * This is a simple scalar statistic, like a counter. * @sa Stat, ScalarBase, StatStor */ -template -class Scalar : public DataWrap, ScalarBase, ScalarInfo> +class Scalar : public DataWrap, ScalarInfo> { public: /** The base implementation. */ @@ -2398,8 +2397,7 @@ class Value : public DataWrap * A stat that calculates the per tick average of a value. * @sa Stat, ScalarBase, AvgStor */ -template -class Average : public DataWrap, ScalarBase, ScalarInfo> +class Average : public DataWrap, ScalarInfo> { public: /** The base implementation. */ @@ -2427,8 +2425,7 @@ class Average : public DataWrap, ScalarBase, ScalarInfo> * A vector of scalar stats. * @sa Stat, VectorBase, StatStor */ -template -class Vector : public DataWrapVec, VectorBase, VectorInfo> +class Vector : public DataWrapVec, VectorInfo> { public: /** The base implementation. */ @@ -2451,9 +2448,8 @@ class Vector : public DataWrapVec, VectorBase, VectorInfo> * A vector of Average stats. * @sa Stat, VectorBase, AvgStor */ -template class AverageVector - : public DataWrapVec, VectorBase, VectorInfo> + : public DataWrapVec, VectorInfo> { public: /** @@ -2473,9 +2469,8 @@ class AverageVector * A 2-Dimensional vecto of scalar stats. * @sa Stat, Vector2dBase, StatStor */ -template class Vector2d - : public DataWrapVec2d, Vector2dBase, Vector2dInfo> + : public DataWrapVec2d, Vector2dInfo> { public: Vector2d & @@ -2490,9 +2485,8 @@ class Vector2d * A simple distribution stat. * @sa Stat, DistBase, DistStor */ -template class Distribution - : public DataWrap, DistBase, DistInfo> + : public DataWrap, DistInfo> { public: /** Base implementation. */ @@ -2524,9 +2518,8 @@ class Distribution * Calculates the mean and variance of all the samples. * @sa Stat, DistBase, FancyStor */ -template class StandardDeviation - : public DataWrap, DistBase, DistInfo> + : public DataWrap, DistInfo> { public: /** The base implementation */ @@ -2546,9 +2539,8 @@ class StandardDeviation * Calculates the per tick mean and variance of the samples. * @sa Stat, DistBase, AvgFancy */ -template class AverageDeviation - : public DataWrap, DistBase, DistInfo> + : public DataWrap, DistInfo> { public: /** The base implementation */ @@ -2568,9 +2560,8 @@ class AverageDeviation * A vector of distributions. * @sa Stat, VectorDistBase, DistStor */ -template class VectorDistribution - : public DataWrapVec, + : public DataWrapVec, VectorDistInfo> { @@ -2605,9 +2596,8 @@ class VectorDistribution * This is a vector of StandardDeviation stats. * @sa Stat, VectorDistBase, FancyStor */ -template class VectorStandardDeviation - : public DataWrapVec, + : public DataWrapVec, VectorDistInfo> { @@ -2633,9 +2623,8 @@ class VectorStandardDeviation * This is a vector of AverageDeviation stats. * @sa Stat, VectorDistBase, AvgFancy */ -template class VectorAverageDeviation - : public DataWrapVec, + : public DataWrapVec, VectorDistInfo> { @@ -2828,8 +2817,7 @@ class Temp * Create a new ScalarStatNode. * @param s The ScalarStat to place in a node. */ - template - Temp(const Scalar &s) + Temp(const Scalar &s) : node(new ScalarStatNode(s.info())) { } @@ -2845,8 +2833,7 @@ class Temp * Create a new ScalarStatNode. * @param s The ScalarStat to place in a node. */ - template - Temp(const Average &s) + Temp(const Average &s) : node(new ScalarStatNode(s.info())) { } @@ -2854,8 +2841,7 @@ class Temp * Create a new VectorStatNode. * @param s The VectorStat to place in a node. */ - template - Temp(const Vector &s) + Temp(const Vector &s) : node(new VectorStatNode(s.info())) { } -- 2.30.2