---
milena/ChangeLog | 4 ++++
milena/mln/topo/complex.hh | 14 ++++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 948ad38..f67a0d3 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,9 @@
2008-10-16 Roland Levillain <roland(a)lrde.epita.fr>
+ * mln/topo/complex.hh (mln::complex<D>::addr): New accessor.
+
+2008-10-16 Roland Levillain <roland(a)lrde.epita.fr>
+
Have mln::point be more generic.
* mln/core/point.hh: Fix a name in documentation.
diff --git a/milena/mln/topo/complex.hh b/milena/mln/topo/complex.hh
index f186f4f..f4e1499 100644
--- a/milena/mln/topo/complex.hh
+++ b/milena/mln/topo/complex.hh
@@ -153,6 +153,12 @@ namespace mln
void print_faces(std::ostream& ostr) const;
/// \}
+ /// \brief Get the address of the data of this complex.
+ ///
+ /// This address is a concise and useful information to print
+ /// and track the actual content of this complex.
+ const void* addr() const;
+
private:
/// The actual data of the complex.
util::tracked_ptr< internal::complex_data<D> > data_;
@@ -681,6 +687,14 @@ namespace mln
data_->internal::faces_set_mixin<N, D>::print(ostr);
}
+ template <unsigned D>
+ inline
+ const void*
+ complex<D>::addr() const
+ {
+ return data_.ptr_;
+ }
+
namespace internal
{
--
1.6.0.1
Show replies by date