Commit 5ba28743 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Replace deduced type 'point' by 'site'.

	* mln/geom/max_col.hh,
	* mln/geom/max_row.hh,
	* mln/geom/min_col.hh,
	* mln/geom/min_row.hh: Replace deduced type 'point' by 'site'.
parent 6270c8c9
2010-08-04 Guillaume Lazzara <z@lrde.epita.fr>
Replace deduced type 'point' by 'site'.
* mln/geom/max_col.hh,
* mln/geom/max_row.hh,
* mln/geom/min_col.hh,
* mln/geom/min_row.hh: Replace deduced type 'point' by 'site'.
2010-07-06 Guillaume Lazzara <z@lrde.epita.fr> 2010-07-06 Guillaume Lazzara <z@lrde.epita.fr>
   
Small fixes in milena. Small fixes in milena.
// Copyright (C) 2007, 2008, 2009 EPITA Research and Development // Copyright (C) 2007, 2008, 2009, 2010 EPITA Research and Development
// Laboratory (LRDE) // Laboratory (LRDE)
// //
// This file is part of Olena. // This file is part of Olena.
...@@ -47,7 +47,7 @@ namespace mln ...@@ -47,7 +47,7 @@ namespace mln
/// Give the maximum col of an box 2d or 3d. /// Give the maximum col of an box 2d or 3d.
template <typename B> template <typename B>
mln_deduce(B, point, coord) max_col(const Box<B>& b); mln_deduce(B, site, coord) max_col(const Box<B>& b);
# ifndef MLN_INCLUDE_ONLY # ifndef MLN_INCLUDE_ONLY
...@@ -64,10 +64,10 @@ namespace mln ...@@ -64,10 +64,10 @@ namespace mln
template <typename B> template <typename B>
inline inline
mln_deduce(B, point, coord) max_col(const Box<B>& b) mln_deduce(B, site, coord) max_col(const Box<B>& b)
{ {
metal::not_<metal::equal<metal::int_<B::dim>, metal::int_<1> > >::check(); metal::not_<metal::equal<metal::int_<B::dim>, metal::int_<1> > >::check();
mln_deduce(B, point, coord) maxcol = exact(b).pmax().col(); mln_deduce(B, site, coord) maxcol = exact(b).pmax().col();
return maxcol; return maxcol;
} }
......
// Copyright (C) 2007, 2008, 2009 EPITA Research and Development // Copyright (C) 2007, 2008, 2009, 2010 EPITA Research and Development
// Laboratory (LRDE) // Laboratory (LRDE)
// //
// This file is part of Olena. // This file is part of Olena.
...@@ -48,7 +48,7 @@ namespace mln ...@@ -48,7 +48,7 @@ namespace mln
/// Give the maximum row of an box 2d or 3d. /// Give the maximum row of an box 2d or 3d.
template <typename B> template <typename B>
mln_deduce(B, point, coord) max_row(const Box<B>& b); mln_deduce(B, site, coord) max_row(const Box<B>& b);
# ifndef MLN_INCLUDE_ONLY # ifndef MLN_INCLUDE_ONLY
...@@ -65,10 +65,10 @@ namespace mln ...@@ -65,10 +65,10 @@ namespace mln
template <typename B> template <typename B>
inline inline
mln_deduce(B, point, coord) max_row(const Box<B>& b) mln_deduce(B, site, coord) max_row(const Box<B>& b)
{ {
metal::not_<metal::equal<metal::int_<B::dim>, metal::int_<1> > >::check(); metal::not_<metal::equal<metal::int_<B::dim>, metal::int_<1> > >::check();
mln_deduce(B, point, coord) maxrow = exact(b).pmax().row(); mln_deduce(B, site, coord) maxrow = exact(b).pmax().row();
return maxrow; return maxrow;
} }
......
// Copyright (C) 2007, 2008, 2009 EPITA Research and Development // Copyright (C) 2007, 2008, 2009, 2010 EPITA Research and Development
// Laboratory (LRDE) // Laboratory (LRDE)
// //
// This file is part of Olena. // This file is part of Olena.
...@@ -47,7 +47,7 @@ namespace mln ...@@ -47,7 +47,7 @@ namespace mln
/// Give the minimum column of an box 2d or 3d. /// Give the minimum column of an box 2d or 3d.
template <typename B> template <typename B>
mln_deduce(B, point, coord) min_col(const Box<B>& b); mln_deduce(B, site, coord) min_col(const Box<B>& b);
# ifndef MLN_INCLUDE_ONLY # ifndef MLN_INCLUDE_ONLY
...@@ -65,10 +65,10 @@ namespace mln ...@@ -65,10 +65,10 @@ namespace mln
template <typename B> template <typename B>
inline inline
mln_deduce(B, point, coord) min_col(const Box<B>& b) mln_deduce(B, site, coord) min_col(const Box<B>& b)
{ {
metal::not_<metal::equal<metal::int_<B::dim>, metal::int_<1> > >::check(); metal::not_<metal::equal<metal::int_<B::dim>, metal::int_<1> > >::check();
mln_deduce(B, point, coord) mincol = exact(b).pmin().col(); mln_deduce(B, site, coord) mincol = exact(b).pmin().col();
return mincol; return mincol;
} }
......
// Copyright (C) 2007, 2008, 2009 EPITA Research and Development // Copyright (C) 2007, 2008, 2009, 2010 EPITA Research and Development
// Laboratory (LRDE) // Laboratory (LRDE)
// //
// This file is part of Olena. // This file is part of Olena.
...@@ -50,7 +50,7 @@ namespace mln ...@@ -50,7 +50,7 @@ namespace mln
/// Give the minimum row of an box 2d or 3d. /// Give the minimum row of an box 2d or 3d.
template <typename B> template <typename B>
mln_deduce(B, point, coord) min_row(const Box<B>& b); mln_deduce(B, site, coord) min_row(const Box<B>& b);
# ifndef MLN_INCLUDE_ONLY # ifndef MLN_INCLUDE_ONLY
...@@ -68,10 +68,10 @@ namespace mln ...@@ -68,10 +68,10 @@ namespace mln
template <typename B> template <typename B>
inline inline
mln_deduce(B, point, coord) min_row(const Box<B>& b) mln_deduce(B, site, coord) min_row(const Box<B>& b)
{ {
metal::not_<metal::equal<metal::int_<B::dim>, metal::int_<1> > >::check(); metal::not_<metal::equal<metal::int_<B::dim>, metal::int_<1> > >::check();
mln_deduce(B, point, coord) minrow = exact(b).pmin().row(); mln_deduce(B, site, coord) minrow = exact(b).pmin().row();
return minrow; return minrow;
} }
......
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