X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FStatistics.hh;h=4d64692f2526688f0cde97d1f0bf7b941fdf9a91;hb=refs%2Fheads%2Fmaster;hp=8217a22cbf274d195ebaf8171624ee1f12dd370d;hpb=ab7ff164ab5ae711ec09ce2b24228510f1ffdcff;p=senf.git diff --git a/senf/Utils/Statistics.hh b/senf/Utils/Statistics.hh index 8217a22..4d64692 100644 --- a/senf/Utils/Statistics.hh +++ b/senf/Utils/Statistics.hh @@ -74,6 +74,7 @@ namespace senf { { typedef std::map Children; + // why we can't use ::__gnu_cxx::select2nd instead?!?! struct Transform { typedef Children::value_type & first_argument_type; typedef Collector & result_type; @@ -229,6 +230,11 @@ namespace senf { \param[in] n size of sliding average window */ //\} + StatisticsData data() const; ///< Get the Statistics data as senf::StatisticsData + /**< Return a Statistic Data object containing values + from this instance. */ + + //-//////////////////////////////////////////////////////////////////////// // Exceptions @@ -485,7 +491,7 @@ namespace senf { StatisticsBase::OutputProxy output(unsigned n = 1u); - void consoleList(std::ostream & os); + void consoleList(std::ostream & os) const; void consoleCollect(std::vector & ranks); boost::shared_ptr consoleOutput( std::vector & ranks, unsigned window);