URL:
https://svn.lrde.epita.fr/svn/oln/trunk/milena
ChangeLog:
2009-07-07 Edwin Carlinet <carlinet(a)lrde.epita.fr>
Add traits to mean accumulator.
* accu/stat/mean.hh: Add traits to mean accu.
---
mean.hh | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
Index: trunk/milena/mln/accu/stat/mean.hh
===================================================================
--- trunk/milena/mln/accu/stat/mean.hh (revision 4249)
+++ trunk/milena/mln/accu/stat/mean.hh (revision 4250)
@@ -52,6 +52,9 @@
} // end of namespace mln::accu::stat
+
+ // Meta.
+
namespace meta
{
@@ -74,6 +77,29 @@
} // end of namespace mln::accu::meta
+ } // end of namespace mln::accu
+
+
+ // Traits.
+
+ namespace trait
+ {
+
+ template <typename T, typename S, typename M>
+ struct accumulator_< accu::stat::mean<T, S, M> >
+ {
+ typedef accumulator::has_untake::no has_untake;
+ typedef accumulator::has_set_value::no has_set_value;
+ typedef accumulator::has_stop::no has_stop;
+ typedef accumulator::when_pix::use_v when_pix;
+ };
+
+ } // end of namespace mln::trait
+
+
+ namespace accu
+ {
+
namespace stat
{