X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FStatistics.hh;h=41ead1aa8a1c491bdb1d7b721d1b77d02d28a7a0;hb=5b2e9a63a43027c71ac470ac9bdecb72e8974951;hp=4148ba10b9532c17a8d768b070d63350d9c2fb3b;hpb=7661548b20e6c7627f54bff87e0758396fd523ef;p=senf.git diff --git a/senf/Utils/Statistics.hh b/senf/Utils/Statistics.hh index 4148ba1..41ead1a 100644 --- a/senf/Utils/Statistics.hh +++ b/senf/Utils/Statistics.hh @@ -38,6 +38,7 @@ #include "Exception.hh" #include #include +#include "StatisticAccumulator.hh" //#include "Statistics.mpp" //-///////////////////////////////////////////////////////////////////////////////////////////////// @@ -49,6 +50,7 @@ namespace senf { The statistics functionality has two parts: \li the senf::Statistics class + \li the senf::StatisticsAccumulator class \li statistics sources Each senf::Statistics instance collects information about a single parameter. Which @@ -463,6 +465,18 @@ namespace senf { ///< Same as operator() with \a min == \a avg == \a max /**< Provided so a Statistics instance can be directly used as a signal target. */ + void operator()(StatisticsData const & data); + ///< Same as operator(), but imports statistics data from a StatisticsData object + /**< Provided so a Statistics instance can be directly used + as a signal target. */ + template + void operator()(unsigned n, StatisticAccumulator & sa); + ///< Same as operator() gathers values from StatisticAccumulator + /**< Provided so a Statistics instance can be directly used + as a signal target. Caution: Clears values in + StatisticAccumulator afterwards + \param[in] n number of time-slices + \param[in] sa StatisticAccumulator*/ StatisticsBase::OutputProxy output(unsigned n = 1u);