* mln/topo/face.hh (operator<<(std::ostream&, const face<D>&))
* mln/topo/n_face.hh (operator<<(std::ostream&, const n_face<N,
D>&)):
Do it.
---
milena/ChangeLog | 8 ++++++++
milena/mln/topo/face.hh | 3 ++-
milena/mln/topo/n_face.hh | 3 ++-
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index a9e0511..0f28467 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,13 @@
2008-09-30 Roland Levillain <roland(a)lrde.epita.fr>
+ Print the address of complexes with their face handles.
+
+ * mln/topo/face.hh (operator<<(std::ostream&, const face<D>&))
+ * mln/topo/n_face.hh (operator<<(std::ostream&, const n_face<N,
D>&)):
+ Do it.
+
+2008-09-30 Roland Levillain <roland(a)lrde.epita.fr>
+
Overhaul mln::topo::internal::complex_iter_base.
* mln/topo/internal/complex_iter_base.hh
diff --git a/milena/mln/topo/face.hh b/milena/mln/topo/face.hh
index 1ff81e5..00d6049 100644
--- a/milena/mln/topo/face.hh
+++ b/milena/mln/topo/face.hh
@@ -404,7 +404,8 @@ namespace mln
std::ostream&
operator<<(std::ostream& ostr, const face<D>& f)
{
- return ostr << "(dim = " << f.n() << ", id =
" << f.face_id() << ')';
+ return ostr << "(cplx = " << &f.cplx() << ",
dim = " << f.n()
+ << ", id = " << f.face_id() << ')';
}
# endif // ! MLN_INCLUDE_ONLY
diff --git a/milena/mln/topo/n_face.hh b/milena/mln/topo/n_face.hh
index bb4e926..fddf568 100644
--- a/milena/mln/topo/n_face.hh
+++ b/milena/mln/topo/n_face.hh
@@ -259,7 +259,8 @@ namespace mln
std::ostream&
operator<<(std::ostream& ostr, const n_face<N, D>& f)
{
- return ostr << "(dim = " << f.n() << ", id =
" << f.face_id() << ')';
+ return ostr << "(cplx = " << &f.cplx() << ",
dim = " << f.n()
+ << ", id = " << f.face_id() << ')';
}
# endif // ! MLN_INCLUDE_ONLY
--
1.6.0.1
Show replies by date