26 #ifndef MLN_WIN_LINE_HH
27 # define MLN_WIN_LINE_HH
33 # include <mln/core/internal/classical_window_base.hh>
34 # include <mln/core/dpoint.hh>
41 namespace win {
template <
typename M,
unsigned i,
typename C>
struct line; }
47 template <
typename M,
unsigned i,
typename C>
48 struct window_< mln::
win::line<M,i,C> > : classical_window_
72 template <
typename M,
unsigned i,
typename C>
87 unsigned size()
const;
93 void print_(std::ostream& ostr)
const;
101 # ifndef MLN_INCLUDE_ONLY
104 template <
typename M,
unsigned i,
typename C>
109 metal::bool_< i < M::dim >::check();
110 mln_precondition(length % 2 == 1);
115 minus_dc = static_cast<def::coord>(- dc);
123 template <
typename M,
unsigned i,
typename C>
125 unsigned line<M,i,C>::length()
const
130 template <
typename M,
unsigned i,
typename C>
132 unsigned line<M,i,C>::size()
const
137 template <
typename M,
unsigned i,
typename C>
139 unsigned line<M,i,C>::delta_()
const
144 template <
typename M,
unsigned i,
typename C>
147 line<M,i,C>::print_(std::ostream& ostr)
const
149 ostr <<
"[line: length=" << length_ <<
']';
152 # endif // ! MLN_INCLUDE_ONLY
160 #endif // ! MLN_WIN_LINE_HH