* mln/core/site_set/p_complex.hh
(mln::p_complex::nfaces(unsigned)): New accessor.
---
milena/ChangeLog | 7 +++++++
milena/mln/core/site_set/p_complex.hh | 12 +++++++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 9f8c3b6..a2f96af 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,12 @@
2008-12-30 Roland Levillain <roland(a)lrde.epita.fr>
+ Add a missing accessor in mln::p_complex.
+
+ * mln/core/site_set/p_complex.hh
+ (mln::p_complex::nfaces(unsigned)): New accessor.
+
+2008-12-30 Roland Levillain <roland(a)lrde.epita.fr>
+
Fix complex-based image-related #include's.
* mln/core/internal/complex_neighborhood_base.hh: Include
diff --git a/milena/mln/core/site_set/p_complex.hh
b/milena/mln/core/site_set/p_complex.hh
index f071f6a..cfeb0c2 100644
--- a/milena/mln/core/site_set/p_complex.hh
+++ b/milena/mln/core/site_set/p_complex.hh
@@ -151,8 +151,10 @@ namespace mln
/// `known'.)
unsigned nsites() const;
- /// Return The number of faces in the complex.
+ /// Return the number of faces in the complex.
unsigned nfaces() const;
+ /// Return the number of \a n-faces in the complex.
+ unsigned nfaces(unsigned n) const;
// FIXME: Add nfaces(unsigned) routines? Yes, if this can
// simplify (and lighten) the implementation of piters, psites,
@@ -252,6 +254,14 @@ namespace mln
template <unsigned D, typename G>
inline
+ unsigned
+ p_complex<D, G>::nfaces(unsigned n) const
+ {
+ return cplx_.nfaces(n);
+ }
+
+ template <unsigned D, typename G>
+ inline
bool
p_complex<D, G>::is_valid() const
{
--
1.6.0.4