26 #ifndef MLN_HISTO_POINT_FROM_VALUE_HH
27 # define MLN_HISTO_POINT_FROM_VALUE_HH
33 # include <mln/core/grids.hh>
34 # include <mln/core/point.hh>
35 # include <mln/fun/v2i/index_of_value.hh>
36 # include <mln/fun/v2v/component.hh>
37 # include <mln/trait/value/comp.hh>
40 # define mln_histo_point_type_from(T) typename mln::histo::point_type_from<T>::ret
54 enum { d = mln_dim(
T) };
55 typedef mln_regular_grid_from_dim(d) G;
65 typedef mln_histo_point_type_from(
T)
result;
66 result operator()(const
T& v) const;
70 mln_histo_point_type_from(
T)
74 # ifndef MLN_INCLUDE_ONLY
85 template <
typename T,
typename P>
86 static void run(
const T& v, P&
p)
95 template <
typename T,
typename P>
96 static void run(
const T& v, P&
p)
106 template <
typename T,
typename P>
107 static void run(
const T& v, P&
p)
118 template <
typename T>
123 mln_histo_point_type_from(
T)
p;
128 template <typename
T>
129 mln_histo_point_type_from(
T)
136 # endif // ! MLN_INCLUDE_ONLY
143 #endif // ! MLN_HISTO_POINT_FROM_VALUE_HH