// $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>
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