2439: Delegate pretty-printing of iterators on faces to mln::topo::face.

* mln/topo/internal/complex_iter_base.hh (operator<<): Here. --- milena/ChangeLog | 6 ++++++ milena/mln/topo/internal/complex_iter_base.hh | 7 ++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/milena/ChangeLog b/milena/ChangeLog index a376900..d820e59 100644 --- a/milena/ChangeLog +++ b/milena/ChangeLog @@ -1,5 +1,11 @@ 2008-09-30 Roland Levillain <roland@lrde.epita.fr> + Delegate pretty-printing of iterators on faces to mln::topo::face. + + * mln/topo/internal/complex_iter_base.hh (operator<<): Here. + +2008-09-30 Roland Levillain <roland@lrde.epita.fr> + Add accesses to adjacent faces to mln::topo::face<D>. * mln/topo/face.hh diff --git a/milena/mln/topo/internal/complex_iter_base.hh b/milena/mln/topo/internal/complex_iter_base.hh index 8e20801..dc479e2 100644 --- a/milena/mln/topo/internal/complex_iter_base.hh +++ b/milena/mln/topo/internal/complex_iter_base.hh @@ -97,10 +97,7 @@ namespace mln }; - /* FIXME: This hand-made delegation is painful. We should rely on - the general mechanism provided by Point_Site. But then again, we - need to refine/adjust the interface of Point_Site w.r.t. the - mandatory conversions to points. */ + /// Print an mln::topo::internal::complex_iter_base. template <typename F, typename E> inline std::ostream& @@ -194,7 +191,7 @@ namespace mln This is a general remark that applies to all iterators of Milena. */ F f = p; - return ostr << "(dim = " << f.n() << ", id = " << f.face_id() << ')'; + return ostr << f; } # endif // ! MLN_INCLUDE_ONLY -- 1.6.0.1
participants (1)
-
Roland Levillain