27 #ifndef MLN_CANVAS_BROWSING_SNAKE_VERT_HH
28 # define MLN_CANVAS_BROWSING_SNAKE_VERT_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_vert_t::snake_vert_t()
109 template <
typename F>
112 snake_vert_t::operator()(F& f)
const
117 trace::entering(
"canvas::browsing::snake_vert");
118 mln_precondition(f.input.is_valid());
124 f.p = f.input.bbox().pmin();
132 for (col = min_col; col <= max_col; ++col)
140 while (row < max_row)
147 while (row > min_row)
156 trace::exiting(
"canvas::browsing::snake_vert");
159 # endif // ! MLN_INCLUDE_ONLY
168 #endif // ! MLN_CANVAS_BROWSING_SNAKE_VERT_HH