r2219: Add default constructors to complexes on iterators.

* mln/core/complex_iter.hh (mln::complex_fwd_iter_<D>::complex_fwd_iter_) (mln::complex_bkd_iter_<D>::complex_bkd_iter_): New ctors. --- milena/ChangeLog | 9 +++++++++ milena/mln/core/complex_iter.hh | 16 ++++++++++++++++ 2 files changed, 25 insertions(+), 0 deletions(-) diff --git a/milena/ChangeLog b/milena/ChangeLog index 4033236..b40e272 100644 --- a/milena/ChangeLog +++ b/milena/ChangeLog @@ -1,5 +1,14 @@ 2008-09-11 Roland Levillain <roland@lrde.epita.fr> + Add default constructors to complexes on iterators. + + * mln/core/complex_iter.hh + (mln::complex_fwd_iter_<D>::complex_fwd_iter_) + (mln::complex_bkd_iter_<D>::complex_bkd_iter_): + New ctors. + +2008-09-11 Roland Levillain <roland@lrde.epita.fr> + Use set_cplx() in ctors of complexes on iterators. * mln/core/complex_iter.hh diff --git a/milena/mln/core/complex_iter.hh b/milena/mln/core/complex_iter.hh index b96d309..7588a32 100644 --- a/milena/mln/core/complex_iter.hh +++ b/milena/mln/core/complex_iter.hh @@ -62,6 +62,7 @@ namespace mln /// Construction and assignment. /// \{ + complex_fwd_iter_(); /* FIXME: Keep this non-const? See a (big) comment about this in milena/tests/complex_image.cc. */ complex_fwd_iter_(complex<D>& c); @@ -139,6 +140,7 @@ namespace mln /// Construction and assignment. /// \{ + complex_bkd_iter_(); /* FIXME: Keep this non-const? See a (big) comment about this in milena/tests/complex_image.cc. */ complex_bkd_iter_(complex<D>& c); @@ -210,6 +212,13 @@ namespace mln template <unsigned D> inline + complex_fwd_iter_<D>::complex_fwd_iter_() + { + invalidate(); + } + + template <unsigned D> + inline complex_fwd_iter_<D>::complex_fwd_iter_(complex<D>& c) { set_cplx(c); @@ -342,6 +351,13 @@ namespace mln template <unsigned D> inline + complex_bkd_iter_<D>::complex_bkd_iter_() + { + invalidate(); + } + + template <unsigned D> + inline complex_bkd_iter_<D>::complex_bkd_iter_(complex<D>& c) { set_cplx(c); -- 1.5.6.5
participants (1)
-
Roland Levillain