URL:
https://svn.lrde.epita.fr/svn/oln/trunk/milena
ChangeLog:
2008-01-17 Matthieu Garrigues <garrigues(a)lrde.epita.fr>
* mln/core/concept/accumulator.hh: (operator<<) New.
* sandbox/garrigues/factures/array_global.cc: Remove.
* sandbox/garrigues/factures/facture.pgm: Remove.
---
trunk/milena/mln/core/concept/accumulator.hh | 11 +++++++++++
1 file changed, 11 insertions(+)
Index: trunk/milena/mln/core/concept/accumulator.hh
===================================================================
--- trunk/milena/mln/core/concept/accumulator.hh (revision 1670)
+++ trunk/milena/mln/core/concept/accumulator.hh (revision 1671)
@@ -82,6 +82,9 @@
Accumulator();
};
+ template <typename E>
+ std::ostream&
+ operator<<(std::ostream& ostr, const Accumulator<E>& accu);
# ifndef MLN_INCLUDE_ONLY
@@ -114,6 +117,14 @@
exact(this)->take(t);
}
+ template <typename E>
+ inline
+ std::ostream&
+ operator<<(std::ostream& ostr, const Accumulator<E>& accu)
+ {
+ return ostr << exact(accu).to_result();
+ }
+
# endif // ! MLN_INCLUDE_ONLY
} // end of namespace mln
Index: trunk/milena/sandbox/garrigues/factures/array_global.cc (deleted)
===================================================================
Index: trunk/milena/sandbox/garrigues/factures/facture.pgm (deleted)
===================================================================