fixes for g++ 4.5 (some members returned "the constructor, not the type")
[senf.git] / senf / Utils / Statistics.cti
index d34b9ba..a18319e 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 //
-// Copyright (C) 2009 
+// Copyright (C) 2009
 // Fraunhofer Institute for Open Communication Systems (FOKUS)
 // Competence Center NETwork research (NET), St. Augustin, GERMANY
 //     Stefan Bund <g0dil@berlios.de>
 // Custom includes
 
 #define prefix_ inline
-///////////////////////////////cti.p///////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 
-///////////////////////////////////////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 // senf::StatisticsBase::OutputProxy
 
 template <class Owner>
 prefix_ senf::StatisticsBase::OutputProxy<Owner>::OutputProxy(Owner * owner, OutputEntry * entry)
-    : owner_ (owner), entry_ (entry) 
+    : owner_ (owner), entry_ (entry)
 {}
 
 template <class Owner>
@@ -85,7 +85,18 @@ prefix_ senf::console::ScopedDirectory<> & senf::StatisticsBase::OutputProxy<Own
     return entry_->dir;
 }
 
-///////////////////////////////cti.e///////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////
+// senf::Statistics
+
+template <class Value>
+prefix_ void senf::Statistics::operator()(unsigned n, StatisticAccumulator<Value> & sa)
+{
+    enter(n, float(sa.min()), sa.avg(), float(sa.max()), sa.stddev());
+    sa.clear();
+}
+
+
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 #undef prefix_
 
 \f