27 #ifndef MLN_CANVAS_BROWSING_SNAKE_FWD_HH
28 # define MLN_CANVAS_BROWSING_SNAKE_FWD_HH
34 # include <mln/core/concept/browsing.hh>
35 # include <mln/geom/size2d.hh>
91 void operator()(F& f)
const;
96 # ifndef MLN_INCLUDE_ONLY
98 # ifndef MLN_WO_GLOBAL_VARS
102 # endif // ! MLN_WO_GLOBAL_VARS
105 snake_fwd_t::snake_fwd_t()
109 template <
typename F>
112 snake_fwd_t::operator()(F& f)
const
117 trace::entering(
"canvas::browsing::snake_fwd");
118 mln_precondition(f.input.is_valid());
124 f.p = f.input.bbox().pmin();
132 for (row = min_row; row <= max_row; ++row)
140 while (col < max_col)
147 while (col > min_col)
156 trace::exiting(
"canvas::browsing::snake_fwd");
159 # endif // ! MLN_INCLUDE_ONLY
168 #endif // ! MLN_CANVAS_BROWSING_SNAKE_FWD_HH