* box.ixx: New.
* Makefile.am (meta_wrappers): Add box.ixx.
---
swilena/ChangeLog | 7 +++++
swilena/Makefile.am | 1 +
swilena/box.ixx | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 81 insertions(+), 0 deletions(-)
create mode 100644 swilena/box.ixx
diff --git a/swilena/ChangeLog b/swilena/ChangeLog
index 6de45fa..07f35a2 100644
--- a/swilena/ChangeLog
+++ b/swilena/ChangeLog
@@ -1,5 +1,12 @@
2009-06-01 Roland Levillain <roland(a)lrde.epita.fr>
+ Wrap mln::box as box.ixx to factor dependent types.
+
+ * box.ixx: New.
+ * Makefile.am (meta_wrappers): Add box.ixx.
+
+2009-06-01 Roland Levillain <roland(a)lrde.epita.fr>
+
Introduce a variadic version of mln_coord in Swilena.
* coord.ixx: New.
diff --git a/swilena/Makefile.am b/swilena/Makefile.am
index 2922542..69dc4cf 100644
--- a/swilena/Makefile.am
+++ b/swilena/Makefile.am
@@ -5,6 +5,7 @@ SUBDIRS = python
# Meta-wrappers (templates), not generating a module, but factoring
# common parts.
meta_wrappers = \
+ box.ixx \
box_piter.ixx \
ch_value.ixx \
concat.ixx \
diff --git a/swilena/box.ixx b/swilena/box.ixx
new file mode 100644
index 0000000..98cb9fc
--- /dev/null
+++ b/swilena/box.ixx
@@ -0,0 +1,73 @@
+// -*- C++ -*-
+// Copyright (C) 2008, 2009 EPITA Research and Development Laboratory (LRDE)
+//
+// This file is part of the Olena Library. This library is free
+// software; you can redistribute it and/or modify it under the terms
+// of the GNU General Public License version 2 as published by the
+// Free Software Foundation.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this library; see the file COPYING. If not, write to
+// the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+// Boston, MA 02111-1307, USA.
+//
+// As a special exception, you may use this file as part of a free
+// software library without restriction. Specifically, if other files
+// instantiate templates or use macros or inline functions from this
+// file, or you compile this file and link it with other files to
+// produce an executable, this file does not by itself cause the
+// resulting executable to be covered by the GNU General Public
+// License.
+// reasons why the executable file might be covered by the GNU General
+// Public License.
+
+/// \file box.ixx
+/// \brief A wrapper of mln::box<P>.
+
+%{
+#include "mln/core/site_set/box.hh"
+%}
+
+%include "mln/core/macros.hh";
+%include "mln/metal/is_unqualif.hh";
+
+%include "mln/core/site_set/box.hh";
+
+%include "coord.ixx"
+
+/** Instantiate an mln::box<P> type.
+
+ The variadic argument ``P...'' is used to allow template type
+ names having commas (e.g. mln::point<grid::square, def::coord) as
+ argument. */
+%define instantiate_box(Name, P...)
+/* Swig tries to wrap everything by default; prevent it from wrapping
+ methods that may be invalid (1D and 3D ctors for an mln::box2d).
+ Anyway, as Python does not automatically convert `int's to
+ `short's, these these ctors taking `mln::def::coord's are not
+ really useful. */
+%ignore mln::box< P >::box(swl_coord(P));
+%ignore mln::box< P >::box(swl_coord(P), swl_coord(P));
+%ignore mln::box< P >::box(swl_coord(P), swl_coord(P), swl_coord(P));
+
+// Python interface.
+#if SWIGPYTHON
+%extend mln::box< P >
+{
+ mln::box_fwd_piter_< P >
+ __iter__() const
+ {
+ mln::box_fwd_piter_< P > p(*$self);
+ p.start();
+ return p;
+ }
+}
+#endif // !SWIGPYTHON
+
+%template(Name) mln::box< P >;
+%enddef // !instantiate_box
--
1.6.1.2
* coord.ixx: New.
* Makefile.am (meta_wrappers): Add coord.ixx.
---
swilena/ChangeLog | 7 +++++++
swilena/Makefile.am | 1 +
swilena/coord.ixx | 36 ++++++++++++++++++++++++++++++++++++
3 files changed, 44 insertions(+), 0 deletions(-)
create mode 100644 swilena/coord.ixx
diff --git a/swilena/ChangeLog b/swilena/ChangeLog
index ec4467c..6de45fa 100644
--- a/swilena/ChangeLog
+++ b/swilena/ChangeLog
@@ -1,5 +1,12 @@
2009-06-01 Roland Levillain <roland(a)lrde.epita.fr>
+ Introduce a variadic version of mln_coord in Swilena.
+
+ * coord.ixx: New.
+ * Makefile.am (meta_wrappers): Add coord.ixx.
+
+2009-06-01 Roland Levillain <roland(a)lrde.epita.fr>
+
* Makefile.am (meta_wrappers, wrappers): Unwrap.
2009-05-29 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
diff --git a/swilena/Makefile.am b/swilena/Makefile.am
index b264147..2922542 100644
--- a/swilena/Makefile.am
+++ b/swilena/Makefile.am
@@ -9,6 +9,7 @@ meta_wrappers = \
ch_value.ixx \
concat.ixx \
concrete.ixx \
+ coord.ixx \
fill.ixx \
image2d.ixx \
int_u.ixx \
diff --git a/swilena/coord.ixx b/swilena/coord.ixx
new file mode 100644
index 0000000..7d45792
--- /dev/null
+++ b/swilena/coord.ixx
@@ -0,0 +1,36 @@
+// -*- C++ -*-
+// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+//
+// This file is part of the Olena Library. This library is free
+// software; you can redistribute it and/or modify it under the terms
+// of the GNU General Public License version 2 as published by the
+// Free Software Foundation.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this library; see the file COPYING. If not, write to
+// the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+// Boston, MA 02111-1307, USA.
+//
+// As a special exception, you may use this file as part of a free
+// software library without restriction. Specifically, if other files
+// instantiate templates or use macros or inline functions from this
+// file, or you compile this file and link it with other files to
+// produce an executable, this file does not by itself cause the
+// resulting executable to be covered by the GNU General Public
+// License.
+// reasons why the executable file might be covered by the GNU General
+// Public License.
+
+/// \file coord.ixx
+/// \brief A variadic alternative to the macro mln_coord.
+
+/* An equivalent of mln_coord. However, since ``P...'' is a variadic
+ argument, it may include commas, wheras mln_comma may not. */
+%define swl_coord(P...)
+typename P::coord
+%enddef
--
1.6.1.2
* mln/io/abort.hh,
* mln/io/fits/load.hh,
* tests/core/image/edge_image.cc,
* tests/core/image/vertex_image.cc:
Restore wiped out years.
* mln/io/pbm/all.hh,
* mln/io/pfm/load.hh,
* mln/io/pfm/save.hh:
Fix years.
* mln/metal/converts_to.hh,
* tests/util/line_graph.cc:
Missing whitespace.
* mln/io/fits/all.hh,
* mln/io/magick/all.hh,
* mln/io/off/all.hh,
* mln/io/pfm/all.hh,
* mln/io/pgm/all.hh,
* mln/io/pnm/all.hh,
* mln/io/ppm/all.hh,
* mln/io/tiff/all.hh,
* mln/io/txt/all.hh,
Add ``(LRDE)''.
* mln/io/txt/save.hh: Aesthetic change.
---
milena/ChangeLog | 28 ++++++++++++++++++++++++++++
milena/mln/io/abort.hh | 3 +--
milena/mln/io/fits/all.hh | 2 +-
milena/mln/io/fits/load.hh | 3 +--
milena/mln/io/magick/all.hh | 2 +-
milena/mln/io/off/all.hh | 2 +-
milena/mln/io/pbm/all.hh | 4 ++--
milena/mln/io/pfm/all.hh | 2 +-
milena/mln/io/pfm/load.hh | 3 +--
milena/mln/io/pfm/save.hh | 3 +--
milena/mln/io/pgm/all.hh | 2 +-
milena/mln/io/pnm/all.hh | 2 +-
milena/mln/io/ppm/all.hh | 2 +-
milena/mln/io/tiff/all.hh | 2 +-
milena/mln/io/txt/all.hh | 2 +-
milena/mln/io/txt/save.hh | 3 +--
milena/mln/metal/converts_to.hh | 2 +-
milena/tests/core/image/edge_image.cc | 3 ++-
milena/tests/core/image/vertex_image.cc | 3 ++-
milena/tests/util/line_graph.cc | 2 +-
20 files changed, 50 insertions(+), 25 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 3c3f4b2..f40a943 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,31 @@
+2009-06-03 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Fix some copyright headers.
+
+ * mln/io/abort.hh,
+ * mln/io/fits/load.hh,
+ * tests/core/image/edge_image.cc,
+ * tests/core/image/vertex_image.cc:
+ Restore wiped out years.
+ * mln/io/pbm/all.hh,
+ * mln/io/pfm/load.hh,
+ * mln/io/pfm/save.hh:
+ Fix years.
+ * mln/metal/converts_to.hh,
+ * tests/util/line_graph.cc:
+ Missing whitespace.
+ * mln/io/fits/all.hh,
+ * mln/io/magick/all.hh,
+ * mln/io/off/all.hh,
+ * mln/io/pfm/all.hh,
+ * mln/io/pgm/all.hh,
+ * mln/io/pnm/all.hh,
+ * mln/io/ppm/all.hh,
+ * mln/io/tiff/all.hh,
+ * mln/io/txt/all.hh,
+ Add ``(LRDE)''.
+ * mln/io/txt/save.hh: Aesthetic change.
+
2009-06-03 Thierry Geraud <thierry.geraud(a)lrde.epita.fr>
Help g++-2.95.
diff --git a/milena/mln/io/abort.hh b/milena/mln/io/abort.hh
index f41d7b3..629ea79 100644
--- a/milena/mln/io/abort.hh
+++ b/milena/mln/io/abort.hh
@@ -1,5 +1,4 @@
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 EPITA
-// Research and Development Laboratory (LRDE)
+// Copyright (C) 2007, 2008 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/mln/io/fits/all.hh b/milena/mln/io/fits/all.hh
index 42c3739..27aee26 100644
--- a/milena/mln/io/fits/all.hh
+++ b/milena/mln/io/fits/all.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2007 EPITA Research and Development Laboratory
+// Copyright (C) 2007 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/mln/io/fits/load.hh b/milena/mln/io/fits/load.hh
index df2a978..11949f7 100644
--- a/milena/mln/io/fits/load.hh
+++ b/milena/mln/io/fits/load.hh
@@ -1,5 +1,4 @@
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 EPITA
-// Research and Development Laboratory (LRDE)
+// Copyright (C) 2007, 2008 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/mln/io/magick/all.hh b/milena/mln/io/magick/all.hh
index a4c1ca5..545a9fd 100644
--- a/milena/mln/io/magick/all.hh
+++ b/milena/mln/io/magick/all.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2009 EPITA Research and Development Laboratory
+// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/mln/io/off/all.hh b/milena/mln/io/off/all.hh
index bfcc080..d49081b 100644
--- a/milena/mln/io/off/all.hh
+++ b/milena/mln/io/off/all.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2008 EPITA Research and Development Laboratory
+// Copyright (C) 2008, 2009 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/mln/io/pbm/all.hh b/milena/mln/io/pbm/all.hh
index afd7922..17bd044 100644
--- a/milena/mln/io/pbm/all.hh
+++ b/milena/mln/io/pbm/all.hh
@@ -1,5 +1,5 @@
-// Copyright (C) 2007, 2009 EPITA Research and Development Laboratory
-// (LRDE)
+// Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+// Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/mln/io/pfm/all.hh b/milena/mln/io/pfm/all.hh
index 9b918c0..0ca3dce 100644
--- a/milena/mln/io/pfm/all.hh
+++ b/milena/mln/io/pfm/all.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2007 EPITA Research and Development Laboratory
+// Copyright (C) 2007 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/mln/io/pfm/load.hh b/milena/mln/io/pfm/load.hh
index ebf2f97..aba7497 100644
--- a/milena/mln/io/pfm/load.hh
+++ b/milena/mln/io/pfm/load.hh
@@ -1,5 +1,4 @@
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 EPITA
-// Research and Development Laboratory (LRDE)
+// Copyright (C) 2007, 2008 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/mln/io/pfm/save.hh b/milena/mln/io/pfm/save.hh
index f9db876..7c94799 100644
--- a/milena/mln/io/pfm/save.hh
+++ b/milena/mln/io/pfm/save.hh
@@ -1,5 +1,4 @@
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 EPITA
-// Research and Development Laboratory (LRDE)
+// Copyright (C) 2007, 2008 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/mln/io/pgm/all.hh b/milena/mln/io/pgm/all.hh
index c10fa1a..df1fa4b 100644
--- a/milena/mln/io/pgm/all.hh
+++ b/milena/mln/io/pgm/all.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2007 EPITA Research and Development Laboratory
+// Copyright (C) 2007 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/mln/io/pnm/all.hh b/milena/mln/io/pnm/all.hh
index 3b258af..08f190a 100644
--- a/milena/mln/io/pnm/all.hh
+++ b/milena/mln/io/pnm/all.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2007 EPITA Research and Development Laboratory
+// Copyright (C) 2007 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/mln/io/ppm/all.hh b/milena/mln/io/ppm/all.hh
index a4318a0..64cda0f 100644
--- a/milena/mln/io/ppm/all.hh
+++ b/milena/mln/io/ppm/all.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2007 EPITA Research and Development Laboratory
+// Copyright (C) 2007 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/mln/io/tiff/all.hh b/milena/mln/io/tiff/all.hh
index d46dbdb..1fbf8fe 100644
--- a/milena/mln/io/tiff/all.hh
+++ b/milena/mln/io/tiff/all.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2009 EPITA Research and Development Laboratory
+// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/mln/io/txt/all.hh b/milena/mln/io/txt/all.hh
index ce00758..eac9c2f 100644
--- a/milena/mln/io/txt/all.hh
+++ b/milena/mln/io/txt/all.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2008 EPITA Research and Development Laboratory
+// Copyright (C) 2008 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/mln/io/txt/save.hh b/milena/mln/io/txt/save.hh
index db0d423..f8d0511 100644
--- a/milena/mln/io/txt/save.hh
+++ b/milena/mln/io/txt/save.hh
@@ -1,5 +1,4 @@
-// Copyright (C) 2008, 2009 EPITA Research and Development Laboratory
-// (LRDE)
+// Copyright (C) 2008, 2009 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/mln/metal/converts_to.hh b/milena/mln/metal/converts_to.hh
index 99a1c8b..575b392 100644
--- a/milena/mln/metal/converts_to.hh
+++ b/milena/mln/metal/converts_to.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2007, 2008, 2009a EPITA Research and Development
+// Copyright (C) 2007, 2008, 2009 EPITA Research and Development
// Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
diff --git a/milena/tests/core/image/edge_image.cc b/milena/tests/core/image/edge_image.cc
index aab4712..c6b3478 100644
--- a/milena/tests/core/image/edge_image.cc
+++ b/milena/tests/core/image/edge_image.cc
@@ -1,4 +1,5 @@
-// Copyright(C) 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright(C) 2007, 2008, 2009 EPITA Research and Development
+// Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/tests/core/image/vertex_image.cc b/milena/tests/core/image/vertex_image.cc
index e4c2425..3d39dec 100644
--- a/milena/tests/core/image/vertex_image.cc
+++ b/milena/tests/core/image/vertex_image.cc
@@ -1,4 +1,5 @@
-// Copyright(C) 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright(C) 2007, 2008, 2009 EPITA Research and Development
+// Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/tests/util/line_graph.cc b/milena/tests/util/line_graph.cc
index 3370a5c..359459c 100644
--- a/milena/tests/util/line_graph.cc
+++ b/milena/tests/util/line_graph.cc
@@ -1,4 +1,4 @@
-// Copyright(C) 2008 EPITA Research and Development Laboratory(LRDE)
+// Copyright(C) 2008 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
--
1.6.1.2