From: mtk Date: Mon, 17 Jan 2011 16:31:17 +0000 (+0000) Subject: make data() method const - again ! X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=812edf9325446471f61424e4289c7f9c304a32d8;p=senf.git make data() method const - again ! git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1765 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/senf/Utils/StatisticAccumulator.ct b/senf/Utils/StatisticAccumulator.ct index 401f5a0..0117732 100644 --- a/senf/Utils/StatisticAccumulator.ct +++ b/senf/Utils/StatisticAccumulator.ct @@ -88,13 +88,13 @@ prefix_ void senf::StatisticAccumulator::clear() } template -prefix_ void senf::StatisticAccumulator::data( StatisticsData &data_) +prefix_ void senf::StatisticAccumulator::data( StatisticsData &data_) const { data_.min = (float) min_; data_.avg = avg(); data_.max = (float) max_; data_.stddev = stddev(); - data_.count = count; + data_.count = count_; } diff --git a/senf/Utils/StatisticAccumulator.hh b/senf/Utils/StatisticAccumulator.hh index 0293e5f..08ba344 100644 --- a/senf/Utils/StatisticAccumulator.hh +++ b/senf/Utils/StatisticAccumulator.hh @@ -89,7 +89,7 @@ namespace senf { boost::uint32_t count() const; ///< Returns count of accumulated values. /**< This method returns count of accumulated values of the current accumulation.*/ - void data( StatisticsData & data_); + void data( StatisticsData & data_) const; ///< Returns the accumulated data as a tuple /**< This method returns the accumulated information as a tuple.*/