https://svn.lrde.epita.fr/svn/oln/trunk/olena
Index: ChangeLog
from Thierry Geraud <thierry.geraud(a)lrde.epita.fr>
Remove dead code.
* oln/core/abstract/image/hybrid/classical.hh,
* oln/core/abstract/image/type/binary.hh,
* oln/core/abstract/image/type/data.hh,
* oln/core/abstract/image/type/grey_level.hh,
* oln/core/abstract/image/type/integre.hh,
* oln/core/abstract/image/type/color.hh,
* oln/core/abstract/image/type/hierarchy.hh,
* oln/core/abstract/image/type/label.hh,
* oln/core/abstract/image/mutability/hierarchy.hh,
* oln/core/abstract/image/hierarchies.hh,
* oln/core/abstract/image/computability/hierarchy.hh,
* oln/core/abstract/image/dimension/1d.hh,
* oln/core/abstract/image/dimension/2d.hh,
* oln/core/abstract/image/dimension/3d.hh,
* oln/core/abstract/image/dimension/hierarchy.hh,
* oln/core/abstract/image/all.hh,
* oln/core/abstract/image/neighborhood/hierarchy.hh,
* oln/core/abstract/image/point_wise_accessibility/hierarchy.hh,
* oln/core/abstract/image/bbox/hierarchy.hh,
* oln/core/abstract/image/value_wise_accessibility/hierarchy.hh,
* oln/core/abstract/fwd_decls.hh,
* oln/core/abstract/array.hh,
* oln/core/abstract/internal/image_impl.hh,
* oln/core/automatic/image/image.hh,
* oln/core/automatic/image/image1d.hh,
* oln/core/automatic/image/image2d.hh,
* oln/core/automatic/image/image3d.hh,
* oln/core/automatic/image/image_being_point_wise_random_accessible.hh,
* oln/core/automatic/image/image_being_value_wise_random_accessible.hh,
* oln/core/automatic/image/image_having_neighborhood.hh,
* oln/core/automatic/image/mutable_image.hh,
* oln/core/automatic/image/mutable_image1d.hh,
* oln/core/automatic/image/mutable_image2d.hh,
* oln/core/automatic/image/mutable_image3d.hh,
* oln/core/automatic/impl.hh,
* oln/core/automatic/topology/topology_being_random_accessible.hh,
* oln/core/automatic/topology/topology_having_bbox.hh,
* oln/core/automatic/topology/topology_having_neighborhood.hh,
* oln/core/automatic/topology/topology_having_subset.hh,
* oln/core/iterator_vtypes.hh,
* oln/core/spe/row.hh,
* oln/core/spe/col.hh,
* oln/core/spe/slice.hh,
* oln/core/type_fun/plain.hh,
* oln/core/type_fun/ch_value.hh,
* oln/core/type_fun/slice.hh: Remove files.
* oln/core/abstract/functions.hh: Rename as...
* oln/core/concept/functions.hh: ...this and update.
* oln/core/concept/image.hh: Add doc.
* oln/core/abstract/image/hybrid,
* oln/core/abstract/image/type,
* oln/core/abstract/image/mutability,
* oln/core/abstract/image/computability,
* oln/core/abstract/image/dimension,
* oln/core/abstract/image/neighborhood,
* oln/core/abstract/image/point_wise_accessibility,
* oln/core/abstract/image/bbox,
* oln/core/abstract/image/value_wise_accessibility,
* oln/core/abstract/image,
* oln/core/abstract/internal,
* oln/core/abstract,
* oln/core/automatic/image,
* oln/core/automatic/topology,
* oln/core/spe,
* oln/core/type_fun: Remove directories.
functions.hh | 96 ++++++++++++++++++++++++++++++++---------------------------
image.hh | 6 +++
2 files changed, 59 insertions(+), 43 deletions(-)
Index: oln/core/concept/image.hh
--- oln/core/concept/image.hh (revision 871)
+++ oln/core/concept/image.hh (working copy)
@@ -76,6 +76,12 @@
|
|
|
+ o -- + -- Plain_Image
+ | |
+ | + -- Computed_Image
+ |
+ |
+ |
o -- + -- Gray_Level_Image
| |
| + -- Color_Image
Index: oln/core/concept/functions.hh
--- oln/core/concept/functions.hh (revision 870)
+++ oln/core/concept/functions.hh (working copy)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006 EPITA Research and Development Laboratory
+// Copyright (C) 2006, 2007 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
@@ -25,18 +25,16 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-#ifndef OLN_CORE_ABSTRACT_FUNCTIONS_HH
-# define OLN_CORE_ABSTRACT_FUNCTIONS_HH
+#ifndef OLN_CORE_CONCEPT_FUNCTIONS_HH
+# define OLN_CORE_CONCEPT_FUNCTIONS_HH
-# include <stc/any.hh>
-# include <oln/core/type.hh>
-# include <oln/core/abstract/image.hh>
-# include <oln/core/abstract/image/mutability/hierarchy.hh>
+# include <oln/core/equipment.hh>
namespace oln
{
+ /*
// Fwd decl.
namespace morpher {
@@ -45,109 +43,121 @@
}
namespace value { template <typename I, typename F> class two_way; }
+ */
- namespace abstract
+ template <typename Exact>
+ struct Function : public Any<Exact>
{
+ protected:
+ Function();
+ };
+
// Point -> Value.
- template <typename E>
- struct fun_p2v : public virtual stc::any__simple<E>,
- public oln::type
+ template <typename Exact>
+ struct Function_p2v : public Function<Exact>
{
protected:
- fun_p2v();
+ Function_p2v();
};
// Value -> Value.
- template <typename E>
- struct fun_v2v : public virtual stc::any__simple<E>,
- public oln::type
+ template <typename Exact>
+ struct Function_v2v : public Function<Exact>
{
protected:
- fun_v2v();
+ Function_v2v();
};
+ /*
+
// Value1 -> Value2 *and* Value2 -> Value1.
- template <typename E>
- struct fun_v2w2v : public virtual stc::any__simple<E>,
- public oln::type
+ template <typename Exact>
+ struct Function_v2w2v : public Function<Exact>
{
public:
template <typename I>
- oln::morpher::two_way<I, E>
+ oln::morpher::two_way<I, Exact>
operator()(oln::abstract::mutable_image<I>& input) const;
protected:
- fun_v2w2v();
+ Function_v2w2v();
};
// (Image, Point) -> Value2 *and* (Image, Point, Value2) -> Value1.
- template <typename E>
- struct fun_rw : public virtual stc::any__simple<E>,
- public oln::type
+ template <typename Exact>
+ struct Function_rw : public Function<Exact>
{
public:
template <typename I>
- oln::morpher::two_way_rw<I, E>
+ oln::morpher::two_way_rw<I, Exact>
operator()(oln::abstract::mutable_image<I>& input) const;
protected:
- fun_rw();
+ Function_rw();
};
+ */
+
// Point -> Point.
- template <typename E>
- struct fun_p2p : public virtual stc::any__simple<E>,
- public oln::type
+ template <typename Exact>
+ struct Function_p2p : public Function<Exact>
{
protected:
- fun_p2p();
+ Function_p2p();
};
# ifndef OLN_INCLUDE_ONLY
- template <typename E>
- fun_p2v<E>::fun_p2v()
+ template <typename Exact>
+ Function<Exact>::Function()
{
}
- template <typename E>
- fun_v2v<E>::fun_v2v()
+ template <typename Exact>
+ Function_p2v<Exact>::Function_p2v()
{
}
- template <typename E>
- fun_v2w2v<E>::fun_v2w2v()
+ template <typename Exact>
+ Function_v2v<Exact>::Function_v2v()
{
}
- template <typename E>
- fun_rw<E>::fun_rw()
+ /*
+
+ template <typename Exact>
+ Function_v2w2v<Exact>::Function_v2w2v()
{
}
- template <typename E>
- fun_p2p<E>::fun_p2p()
+ template <typename Exact>
+ Function_rw<Exact>::Function_rw()
{
}
-# endif
+ */
+
+ template <typename Exact>
+ Function_p2p<Exact>::Function_p2p()
+ {
+ }
- } // end of namespace oln::abstract
+# endif // OLN_INCLUDE_ONLY
} // end of namespace oln
-#endif // ! OLN_CORE_ABSTRACT_FUNCTIONS_HH
+#endif // ! OLN_CORE_CONCEPT_FUNCTIONS_HH