26 #ifndef MLN_PW_VALUE_HH
27 # define MLN_PW_VALUE_HH
33 # include <mln/fun/internal/selector.hh>
34 # include <mln/core/concept/image.hh>
49 : fun::internal::selector_from_result_< mln_value(I), value_<I> >::ret
51 typedef mln_value(I) result;
56 mln_rvalue(I) operator()(const mln_psite(I)& p) const;
67 value_<I> value(const Image<I>& ima);
71 # ifndef MLN_INCLUDE_ONLY
84 value_<I>::value_(
const I& ima)
92 value_<I>::operator()(const mln_psite(I)& p)
const
94 mln_precondition(ima_ != 0);
95 mln_precondition(ima_->has(p));
102 template <
typename I>
105 value(
const Image<I>& ima)
107 mln_precondition(exact(ima).is_valid());
108 value_<I> tmp(exact(ima));
112 # endif // ! MLN_INCLUDE_ONLY
119 #endif // ! MLN_PW_VALUE_HH