26 #ifndef MLN_WIN_BACKDIAG2D_HH
27 # define MLN_WIN_BACKDIAG2D_HH
33 # include <mln/core/internal/classical_window_base.hh>
34 # include <mln/core/alias/dpoint2d.hh>
40 mln_internal_add_classical_window_trait(backdiag2d);
63 struct backdiag2d :
public internal::classical_window_base< dpoint2d, backdiag2d >
80 unsigned delta_()
const;
82 void print_(std::ostream& ostr)
const;
90 # ifndef MLN_INCLUDE_ONLY
96 mln_precondition(length % 2 == 1);
99 minus_dcol = static_cast<def::coord>(- dcol);
100 for (
def::coord col = minus_dcol; col <= dcol; ++col)
111 unsigned backdiag2d::delta_()
const
117 void backdiag2d::print_(std::ostream& ostr)
const
119 ostr <<
"[backdiag 2d: length=" << length_ <<
']';
122 # endif // ! MLN_INCLUDE_ONLY
130 #endif // ! MLN_WIN_BACKDIAG2D_HH