cleanup-2008 r2310: Rename owns_() to has()

URL: https://svn.lrde.epita.fr/svn/oln/branches/cleanup-2008/milena ChangeLog: 2008-09-17 Guillaume Lazzara <z@lrde.epita.fr> Rename owns_() to has(). * milena/mln/core/image/lazy_image.hh, * milena/mln/morpho/dilation.hh: here. --- core/image/lazy_image.hh | 12 ++++++------ morpho/dilation.hh | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) Index: branches/cleanup-2008/milena/mln/core/image/lazy_image.hh =================================================================== --- branches/cleanup-2008/milena/mln/core/image/lazy_image.hh (revision 2309) +++ branches/cleanup-2008/milena/mln/core/image/lazy_image.hh (revision 2310) @@ -49,7 +49,7 @@ namespace internal { - /// \internal Data structure for \c mln::lazy_image<I>. + /// Data structure for \c mln::lazy_image<I>. template <typename I, typename F, typename B> struct data< lazy_image<I,F,B> > { @@ -128,7 +128,7 @@ const box2d& domain() const; /// Test if a pixel value is accessible at \p p. - bool owns_(const mln_psite(I)&) const; + bool has(const mln_psite(I)&) const; /// Read-only access of pixel value at point site \p p. mln_result(F) operator()(const mln_psite(I)& p) const; @@ -164,9 +164,9 @@ template <typename I, typename F, typename B> inline - bool lazy_image<I,F,B>::owns_(const mln_psite(I)& p) const + bool lazy_image<I,F,B>::has(const mln_psite(I)& p) const { - return this->data_->ima_.owns_(p); + return this->data_->ima_.has(p); } template <typename I, typename F, typename B> @@ -174,7 +174,7 @@ mln_result(F) lazy_image<I,F,B>::operator()(const mln_psite(I)& p) const { - mln_assertion(this->owns_(p)); + mln_assertion(this->has(p)); if (this->data_->is_known(p)) return this->data_->ima_(p); this->data_->ima_(p) = this->data_->fun(p); @@ -188,7 +188,7 @@ typename lazy_image<I,F,B>::lvalue lazy_image<I,F,B>::operator()(const mln_psite(I)& p) { - mln_assertion(this->owns_(p)); + mln_assertion(this->has(p)); if (this->data_->is_known(p)) return this->data_->ima_(p); this->data_->ima_(p) = this->data_->fun(p); Index: branches/cleanup-2008/milena/mln/morpho/dilation.hh =================================================================== --- branches/cleanup-2008/milena/mln/morpho/dilation.hh (revision 2309) +++ branches/cleanup-2008/milena/mln/morpho/dilation.hh (revision 2310) @@ -99,7 +99,7 @@ for_all(p) { max.init(); - for_all(q) if (input.owns_(q)) + for_all(q) if (input.has(q)) max.take(input(q)); output(p) = max.to_result(); } @@ -122,7 +122,7 @@ mln_qiter(W) q(win, p); for_all(p) if (!input(p)) - for_all(q) if (input.owns_(q)) + for_all(q) if (input.has(q)) if (input(q)) { output(p) = true;
participants (1)
-
Guillaume Lazzara