Commit ceed6143 authored by Roland Levillain's avatar Roland Levillain
Browse files

Add missing const qualifiers in iterators on complexes.

	* mln/topo/internal/complex_set_iterator_base.hh
	(complex_set_iterator_base<F, E>::complex_set_iterator_base)
	(complex_set_iterator_base<F, E>::set_cplx):
	Add const qualifier to argument.
parent ccc4a321
2010-05-11 Roland Levillain <roland@lrde.epita.fr>
Add missing const qualifiers in iterators on complexes.
* mln/topo/internal/complex_set_iterator_base.hh
(complex_set_iterator_base<F, E>::complex_set_iterator_base)
(complex_set_iterator_base<F, E>::set_cplx):
Add const qualifier to argument.
2010-06-03 Roland Levillain <roland@lrde.epita.fr> 2010-06-03 Roland Levillain <roland@lrde.epita.fr>
   
Clean up some tests in tests/morpho/. Clean up some tests in tests/morpho/.
// Copyright (C) 2008, 2009 EPITA Research and Development Laboratory (LRDE) // Copyright (C) 2008, 2009, 2010 EPITA Research and Development
// Laboratory (LRDE)
// //
// This file is part of Olena. // This file is part of Olena.
// //
...@@ -66,17 +67,14 @@ namespace mln ...@@ -66,17 +67,14 @@ namespace mln
/// Construction and assignment. /// Construction and assignment.
/// \{ /// \{
/* FIXME: Keep this non-const? See a (big) comment about this in
milena/tests/complex_image.cc. */
complex_set_iterator_base(); complex_set_iterator_base();
complex_set_iterator_base(complex_type& c); complex_set_iterator_base(const complex_type& c);
/// \} /// \}
/// Manipulation. /// Manipulation.
/// \{ /// \{
/// Change the target complex. /// Change the target complex.
// FIXME: Same comment as the ctor above. void set_cplx(const complex_type& c);
void set_cplx(complex_type& c);
/// Test if the iterator is valid. /// Test if the iterator is valid.
bool is_valid() const; bool is_valid() const;
...@@ -98,7 +96,7 @@ namespace mln ...@@ -98,7 +96,7 @@ namespace mln
template <typename F, typename E> template <typename F, typename E>
inline inline
complex_set_iterator_base<F, E>::complex_set_iterator_base(complex_type& c) complex_set_iterator_base<F, E>::complex_set_iterator_base(const complex_type& c)
{ {
this->f_.set_cplx(c); this->f_.set_cplx(c);
// Invalidate f_. // Invalidate f_.
...@@ -108,7 +106,7 @@ namespace mln ...@@ -108,7 +106,7 @@ namespace mln
template <typename F, typename E> template <typename F, typename E>
inline inline
void void
complex_set_iterator_base<F, E>::set_cplx(complex_type& c) complex_set_iterator_base<F, E>::set_cplx(const complex_type& c)
{ {
this->f_.set_cplx(c); this->f_.set_cplx(c);
// Invalidate f_. // Invalidate f_.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment