From: mtk Date: Mon, 16 May 2011 15:00:22 +0000 (+0000) Subject: added ctors to StatisticsData X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=c42654cc29801ef863d08976bc83fdb2a768c067;hp=2017d34cab7de03c786310b3a08424a339f4476d;p=senf.git added ctors to StatisticsData git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1788 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/senf/Utils/StatisticAccumulator.hh b/senf/Utils/StatisticAccumulator.hh index f3b4946..178fbb8 100644 --- a/senf/Utils/StatisticAccumulator.hh +++ b/senf/Utils/StatisticAccumulator.hh @@ -34,9 +34,19 @@ namespace senf { struct StatisticsData { + StatisticsData( float min_, float avg_, float max_, float stddev_, boost::uint32_t count_) + : min(min_), avg(avg_), max(max_), stddev(stddev_), count(count_){ + }; + StatisticsData( StatisticsData const & other) + : min(other.min), avg(other.avg), max(other.max), stddev(other.stddev), count(other.count){ + }; + StatisticsData() + : min(0.0), avg(0.0), max(0.0), stddev(0.0), count(0){ + }; + float min; - float max; float avg; + float max; float stddev; boost::uint32_t count; };