* mln/core/def/coordf.hh: New.
---
milena/ChangeLog | 6 +++++
milena/mln/core/def/coordf.hh | 49 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+), 0 deletions(-)
create mode 100644 milena/mln/core/def/coordf.hh
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 4be6dc1..3f4208e 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-16 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Add a floating-point coordinate type.
+
+ * mln/core/def/coordf.hh: New.
+
2008-10-15 Thierry Geraud <thierry.geraud(a)lrde.epita.fr>
Make morpho meyer_wst practicable.
diff --git a/milena/mln/core/def/coordf.hh b/milena/mln/core/def/coordf.hh
new file mode 100644
index 0000000..f071af6
--- /dev/null
+++ b/milena/mln/core/def/coordf.hh
@@ -0,0 +1,49 @@
+// Copyright (C) 2008 EPITA Research and Development Laboratory
+//
+// 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. This exception does not however invalidate any other
+// reasons why the executable file might be covered by the GNU General
+// Public License.
+
+#ifndef MLN_CORE_DEF_COORDF_HH
+# define MLN_CORE_DEF_COORDF_HH
+
+/// \file mln/core/def/coordf.hh
+/// \brief Definition of the floating coordinate type.
+
+namespace mln
+{
+
+ namespace def
+ {
+
+ /// Definition of the floating coordinate type.
+ /* FIXME: We probably want something smarter than bare `float',
+ i.e., robust to comparisons, etc. */
+ typedef float coordf;
+
+ } // end of namespace mln::def
+
+} // end of namespace mln
+
+#endif // ! MLN_CORE_DEF_COORDF_HH
--
1.6.0.1
Show replies by date