1. 31 Oct, 2006 1 commit
  2. 27 Oct, 2006 4 commits
    • Roland Levillain's avatar
      * TODO: Update. · ad8e081f
      Roland Levillain authored
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@689 4aad255d-cdde-0310-9447-f3009e2ae8c0
      ad8e081f
    • Roland Levillain's avatar
      Various fixes. · 1ce99eb5
      Roland Levillain authored
      	* oln/core/automatic/image/mutable_image1d.hh: Fix header guards,
      	(were the same as oln/core/automatic/image/image1d.hh's).
      	(oln::abstract::mutable_image1d): Forward-declare it.
      	s/abstract::image1d/abstract::mutable_image1d/g.
      	* oln/core/abstract/image/dimension/1d.hh (mutable_image1d)
      	* oln/core/abstract/image/dimension/2d.hh (mutable_image2d)
      	* oln/core/abstract/image/dimension/3d.hh (mutable_image3d): Fix
      	the lookup of impl_at().
      	* oln/core/type_fun/slice.hh: Remove unnecessary headers.
      	* oln/core/abstract/array.hh, oln/core/abstract/functions.hh,
      	* oln/core/internal/point_nd.hh, oln/morpher/thru_mfun.hh: Add
      	missing headers.
      	* oln/morpher/thru_fun.hh (xtd/mexpr.hh): Include it.
      	(struct case_<tag::fun_operator_1, mlc::pair_<Fun, A>, 1>): Turn
      	into...
      	(struct case_<tag::fun_operator_1, mlc::pair_<Fun, A>, 2>):
      	...this.
      	* oln/value/proxy.hh: Fix header guards.
      	(oln/core/typedefs.hh): Include it.
      	* oln/Makefile.am (nobase_oln_HEADERS): Add 
      	core/abstract/image/computability/hierarchy.hh,
      	core/abstract/image/value_wise_accessibility/hierarchy.hh,
      	core/automatic/image/image_being_value_wise_random_accessible.hh,
      	core/gen/topo_add_isubset.hh, core/gen/fwd_viter_lut.hh,
      	core/internal/fwd_viter_lut.hh and value/two_way.hh.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@688 4aad255d-cdde-0310-9447-f3009e2ae8c0
      1ce99eb5
    • Roland Levillain's avatar
      Fix the distribution. · c0f1dc0d
      Roland Levillain authored
      	* mlc/basic.hh: Fix dates in copyright notice.
      	* mlc/Makefile.am (nobase_mlc_HEADERS): Add basic.hh.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@687 4aad255d-cdde-0310-9447-f3009e2ae8c0
      c0f1dc0d
    • Roland Levillain's avatar
      Fix the distribution. · b2262dc4
      Roland Levillain authored
      	* xtd/Makefile.am (nobase_xtd_HEADERS): Add math/ops.hh.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@686 4aad255d-cdde-0310-9447-f3009e2ae8c0
      b2262dc4
  3. 26 Oct, 2006 1 commit
    • Roland Levillain's avatar
      Extend morpher adding a look-up table (oln::morpher::with_lut). · 29db6cbc
      Roland Levillain authored
      	* oln/core/abstract/image/hierarchies.hh
      	(image_hierarchy_wrt_value_wise_accessibility): New hierarchy.
      	(image_hybrid_hierarchy_wrt_classical)
      	(image_hierarchy_wrt_value, image_hierarchy_wrt_data_retrieval):
      	Adjust numbers.
      	* oln/core/abstract/image/all.hh
      	(oln/core/abstract/image/value_wise_accessibility/hierarchy.hh):
      	Include it.
      	Adjust.
      	* oln/core/abstract/image/value_wise_accessibility/hierarchy.hh: New.
      	* oln/core/automatic/image/image_being_value_wise_random_accessible.hh:
      	New.
      	* oln/core/internal/fwd_viter_lut.hh,
      	* oln/core/gen/fwd_viter_lut.hh: New.
      	* oln/core/typedefs.hh (fwd_viter_type, mutable_fwd_viter_type)
      	(lut_type, lut_iter_type): New virtual types declarations.
      	* oln/core/lookup_table.hh (lookup_table): Rename the first two
      	parameters to Orig_Value and New_Value.
      	Add two parameters Orig_Value_Compare and New_Value_Compare,
      	defaulting to std::less<Orig_Value> and std::less<New_Value>
      	respectively.
      	(lookup_table::key_type, lookup_table::data_type): Rename typedefs
      	as...
      	(lookup_table::orig_value_type, lookup_table::new_value_type):
      	...these.
      	(lookup_table::map_type): Remove typedef.
      	(lookup_table::orig_value_type, lookup_table::new_value_type)
      	(lookup_table::const_iterator, lookup_table::iterator): New
      	typedefs.
      	Adjust signatures of methods.
      	(lookup_table::map): Remove method.
      	(lookup_table::begin, lookup_table::end, lookup_table::find)
      	(lookup_table::orig_to_new_map, lookup_table::new_to_orig_map):
      	New methods.
      	(lookup_table::map_): Remove attributes.
      	(lookup_table::orig_to_new_map_, lookup_table::new_to_orig_map_):
      	New attributes.
      	(lookup_table::add): Adjust method.
      	* oln/morpher/with_lut.hh: Adjust.
      	(single_vtype<morpher::with_lut<Image, Lut>, typedef_::fwd_viter_type>)
      	(single_vtype<morpher::with_lut<Image ,Lut>,
      	 typedef_::mutable_fwd_viter_type>):
      	New.
      	(with_lut::lut_t, with_lut::value_t, with_lut::rvalue_t)
      	(with_lut::psite_t): Rename typedefs as...
      	(with_lut::lut_type, with_lut::value_type, with_lut::rvalue_type)
      	(with_lut::psite_type):	...these.
      	Adjust.
      	(with_lut::fwd_viter_type, with_lut::mutable_fwd_viter_type):
      	New typedefs.
      	(with_lut::impl_value): New methods.
      	(operator+ (const abstract::image<I>&, const lookup_table<K, D>&)):
      	Turn into...
      	(operator+ (const abstract::image<I>&, lookup_table<K, D>&)):
      	...this.
      	Adjust.
      	* tests/morphers/with_lut.cc: Augment this test.
      
      	* oln/value/color/rgb.hh
      	(rgb_<T>::operator==(const rgb_<U>&)): New operator.
      	* TODO: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@685 4aad255d-cdde-0310-9447-f3009e2ae8c0
      29db6cbc
  4. 25 Oct, 2006 8 commits
  5. 24 Oct, 2006 5 commits
  6. 23 Oct, 2006 5 commits
    • Thierry Geraud's avatar
      2006-10-23 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · edd41ba6
      Thierry Geraud authored
      	Fix debug track and disambiguate the 'at' method overloading
      	in const and mutable nD images.
      	
      	* oln/core/abstract/array.hh: New.
      	* oln/debug/track.hh (n_arrays): New.
      	(include): Fix.
      	* oln/core/abstract/image.hh (image): New cpy ctor so fix
      	n_images tracking.
      	* oln/core/abstract/image/dimension/1d.hh: Disambiguate by
      	changing inheritance to virtual + inserting a using directive. 
      	* oln/core/abstract/image/dimension/2d.hh: Likewise.
      	* oln/core/abstract/image/dimension/3d.hh: Likewise.
      	* oln/core/1d/array1d.hh (array1d): Add inheritance.
      	* oln/core/2d/array2d.hh: Likewise.
      	* oln/core/3d/array3d.hh: Likewise.
      	* oln/Makefile.am: Update.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@671 4aad255d-cdde-0310-9447-f3009e2ae8c0
      edd41ba6
    • Thierry Geraud's avatar
      2006-10-23 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · 576f2f0d
      Thierry Geraud authored
      	Add stack morpher and remove the hack related to indexed mutable
      	access.
      	
      	* tests/morphers/stack_morpher.cc: New.
      	* tests/morphers/Makefile.am: Update.
      	* oln/debug/track.hh: New.
      	* oln/core/automatic/image/mutable_image2d.hh: New.
      	* oln/core/automatic/image/mutable_image3d.hh: New.
      	* oln/core/automatic/image/mutable_image1d.hh: New.
      	* oln/morpher/stack.hh: New.
      	* oln/Makefile.am: Update.
      	* oln/debug/print.hh (println): Remove; too dummy.
      	(operator): New.
      	* oln/level/fill.hh (fill): New specialization for C arrays.
      	* oln/core/automatic/image/image1d.hh: Remove hack of 'at'.
      	* oln/core/automatic/image/image2d.hh: Likewise.
      	* oln/core/automatic/image/image3d.hh: Likewise.
      	* oln/core/abstract/image.hh (image, ~image): Add counting.
      	(include): Update.
      	* oln/core/abstract/image/dimension/1d.hh
      	(image1d): Split partially into...
      	(mutable_image1d): ...this new class.
      	(include): Update.
      	* oln/core/abstract/image/dimension/2d.hh: Likewise.
      	* oln/core/abstract/image/dimension/3d.hh: Likewise.
      	* oln/core/abstract/image/dimension/hierarchy.hh
      	(case_): Update.
      	* oln/core/2d/array2d.hh (memsize): Better sig.
      	(include): Update.
      	* oln/core/2d/image2d.hh (image2d): New overloading for no arg.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@670 4aad255d-cdde-0310-9447-f3009e2ae8c0
      576f2f0d
    • Thierry Geraud's avatar
      2006-10-23 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · c0c48c31
      Thierry Geraud authored
      	* xtd/vec.hh (ops): Move outside of class.
      	(vec_base_): New specialization for <4, T>.
      	(mk_vec): New overloading for 4 args.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@669 4aad255d-cdde-0310-9447-f3009e2ae8c0
      c0c48c31
    • Roland Levillain's avatar
      Add files for oln::window[123]d. · 1fed92ea
      Roland Levillain authored
      	* oln/core/1d/window1d.hh: New file.
      	* oln/basics1d.hh: Include it.
      	* oln/core/2d/window2d.hh: New file.
      	* oln/basics2d.hh: Include it.
      	* oln/core/3d/window3d.hh: New file.
      	* oln/basics3d.hh: Include it.
      	* oln/Makefile.am (nobase_oln_HEADERS): Add core/1d/window1d.hh,
      	core/2d/window2d.hh and core/3d/window3d.hh
      	* tests/morphers/slice_morpher.cc: Remove FIXME.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@668 4aad255d-cdde-0310-9447-f3009e2ae8c0
      1fed92ea
    • Roland Levillain's avatar
      Add qiters for oln::morpher::slice. · ad6c16c0
      Roland Levillain authored
      	* oln/core/type_fun/slice.hh
      	(TYPE_FUNCTION_slice_piter_NOT_DEFINED_FOR_THIS_PARAMETER): Rename
      	as...
      	(TYPE_FUNCTION_slice_iterator_NOT_DEFINED_FOR_THIS_PARAMETER):
      	...this.
      	Adjust.
      	(oln::type_fun::slice_piter): Rename as...
      	(oln::type_fun::slice_iterator): ...this.
      	(oln::type_fun::slice_iterator<fwd_qiter2d>)
      	(oln::type_fun::slice_iterator<bkd_qiter2d>)
      	(oln::type_fun::slice_iterator<fwd_qiter3d>)
      	(oln::type_fun::slice_iterator<bkd_qiter3d>)
      	* oln/core/iterator_vtypes.hh: s/slice_piter/slice_iterator/g.
      	(oln::single_vtype<morpher::slice<Image>, typedef_::fwd_qiter_type>)
      	(oln::single_vtype<morpher::slice<Image>, typedef_::bkd_qiter_type>)
      	* oln/morpher/slice.hh: Adjust comments.
      	* tests/morphers/slice_morpher.cc: s/ima_with_nbh/slice/g
      	Test fwd_qiter on oln::morpher::slice.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@667 4aad255d-cdde-0310-9447-f3009e2ae8c0
      ad6c16c0
  7. 20 Oct, 2006 5 commits
  8. 19 Oct, 2006 3 commits
    • Roland Levillain's avatar
      Fix virtual types definitions in tests/core/image_entry. · 31535240
      Roland Levillain authored
      	* tests/core/image_entry.cc
      	(oln::vtypes<my::image>::fwd_piter_type)
      	(oln::vtypes<my::image>::bkd_piter_type): Remove typedefs.
      	(oln::single_vtype<my::image, typedef_::fwd_piter_type>)
      	(oln::single_vtype<my::image, typedef_::bkd_piter_type>): New
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@661 4aad255d-cdde-0310-9447-f3009e2ae8c0
      31535240
    • Roland Levillain's avatar
      Add a slice morpher. · 61efad94
      Roland Levillain authored
      	* oln/morpher/tags.hh (oln::morpher::tag::slice): New tag.
      	* oln/morpher/slice.hh: New file (new morpher).
      	* oln/core/type_fun/slice.hh: New.
      	* oln/core/iterator_vtypes.hh: Include it.
      	(oln::single_vtype<morpher::slice<Image>, typedef_::fwd_piter_type>)
      	(oln::single_vtype<morpher::slice<Image>, typedef_::bkd_piter_type>):
      	New.
      	* oln/core/1d/topo1d.hh, oln/core/2d/topo2d.hh,
      	* oln/core/3d/topo3d.hh: New (shortcuts).
      	* oln/core/gen/topo_lbbox.hh (oln::vtypes< topo_lbbox_<point> >:
      	Reduce the explanation to a reference to the virtual types of
      	oln::topo_bbox_.
      	(topo_lbbox::topo_lbbox_(const point&, const point&, unsigned)):
      	New ctor.
      	(topo_lbbox::border): New method.
      	* oln/core/gen/topo_bbox.hh
      	(topo_bbox::topo_bbox_(const point&, const point&)): New ctor.
      	* oln/Makefile.am (nobase_oln_HEADERS): Add
      	core/1d/topo1d.hh, core/2d/topo2d.hh, core/3d/topo3d.hh,
      	core/gen/piter_isubset.hh, core/type_fun/slice_piter.hh and
      	morpher/slice.hh.	
      	* tests/morphers/slice_morpher.cc: New test.
      	* tests/morphers/Makefile.am (check_PROGRAMS): Add slice_morpher.
      	(slice_morpher_SOURCES): New.
      	* oln/core/gen/bbox_fwd_piter.hh, oln/core/gen/bbox_bkd_piter.hh,
      	* tests/morphers/add_neighborhood_morpher.cc: Fix a comment.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@660 4aad255d-cdde-0310-9447-f3009e2ae8c0
      61efad94
    • Roland Levillain's avatar
      More sanity checks. · 86ba6ec5
      Roland Levillain authored
      	* tests/sanity/includes.test: Also check headers whose path
      	contains a directory named ``obsolete'' or ``internal''.
      	* oln/core/internal/dpoint_nd.hh (oln/core/traits_id.hh): Include
      	it.
      	* oln/core/internal/tracked_ptr.hh (ostream): Likewise.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@659 4aad255d-cdde-0310-9447-f3009e2ae8c0
      86ba6ec5
  9. 18 Oct, 2006 2 commits
  10. 17 Oct, 2006 6 commits
    • Thierry Geraud's avatar
      2006-10-17 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · 3dbfab9b
      Thierry Geraud authored
      	Add forward declaration files.
      	
      	* oln/core/aliases.hh: New.
      	* oln/core/fwd_decls.hh: New.
      	* oln/core/1d/fwd_decls.hh: New.
      	* oln/core/2d/fwd_decls.hh: New.
      	* oln/core/3d/fwd_decls.hh: New.
      	* oln/core/gen/fwd_decls.hh: New.
      	* oln/morpher/fwd_decls.hh: New.
      	* oln/debug/typename.hh: New.
      	* oln/Makefile.am: Update.
      	
      	Sketch the mechanism for 'plain' and 'ch_value'.
      
      	* oln/core/type_fun/plain.hh: New.
      	* oln/core/type_fun/ch_value.hh: New.
      	* oln/core/typedefs.hh (oln_plain, oln_plain_): New.
      	* oln/core/image_entry.hh (concrete_type): Remove; obsolete.
      	* oln/core/abstract/image.hh
      	(topo, operator): Change sigs.
      	(topo_t, psite_t, rvalue_t): Remove; now unused.
      	(decl): Uncomment static checks.
      	* oln/core/abstract/image/computability/hierarchy.hh
      	(plain): New.
      	* oln/core/1d/image1d.hh (real_type): Remove; obsolete.
      	* oln/core/2d/image2d.hh: Likewise.
      	* oln/core/3d/image3d.hh: Likewise.
      	* oln/morpher/value_cast.hh (class): Change into struct
      	for homogeneity for other morphers.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@656 4aad255d-cdde-0310-9447-f3009e2ae8c0
      3dbfab9b
    • Roland Levillain's avatar
      Configure new Makefiles of olena/tests. Add a bootstrap script. · adab9e11
      Roland Levillain authored
      	* configure.ac (olena/tests/algorithms/Makefile)
      	(olena/tests/core/Makefile, olena/tests/io/Makefile)
      	(olena/tests/morphers/Makefile, olena/tests/value/Makefile):
      	Configure them.
      	* bootstrap: New.  Stolen from the LRDE Tiger Compiler.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@655 4aad255d-cdde-0310-9447-f3009e2ae8c0
      adab9e11
    • Roland Levillain's avatar
      Organize the tests into a hierarchy. · 61b3b113
      Roland Levillain authored
      	* tests/fill.cc: Move file...
      	* tests/algorithms/fill.cc: ...here.
      	* tests/at.cc, tests/dpoint2d.cc, tests/grid.cc, tests/image1d.cc,
      	* tests/image2d.cc, tests/image3d.cc, tests/image_entry.cc,
      	* tests/npoints.cc, tests/point2d.cc, tests/window2d.cc: Move
      	files...
      	* tests/core/at.cc, tests/core/dpoint2d.cc, tests/core/grid.cc,
      	* tests/core/image1d.cc, tests/core/image2d.cc,
      	* tests/core/image3d.cc, tests/core/image_entry.cc,
      	* tests/core/npoints.cc, tests/core/point2d.cc,
      	* tests/core/window2d.cc: ...here.
      	* tests/io_pnm.cc: Move file...
      	* tests/io/io_pnm.cc: ...here.
      	* tests/add_neighborhood_morpher.cc, tests/identity_morpher.cc,
      	* tests/morphers.cc, tests/value_cast.cc: Move files...
      	* tests/morphers/add_neighborhood_morpher.cc,
      	* tests/morphers/identity_morpher.cc, tests/morphers/morphers.cc,
      	* tests/morphers/value_cast.cc:: ...here.
      	* tests/grey.cc: Move file...
      	* tests/value/grey.cc: ...here.
      	* tests/algorithms/Makefile.am, tests/core/Makefile.am,
      	* tests/io/Makefile.am, tests/morphers/Makefile.am,
      	* tests/value/Makefile.am: New.
      	* tests/Makefile.am: Adjust.
      	* tests/sanity/Makefile.am (CPPFLAGS): Add `-I$(srcdir)/..'.
      
      	* oln/Makefile.am: Remove
      	core/automatic/image/image_being_mutable.hh.
      	Add core/automatic/image/mutable_image.hh.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@654 4aad255d-cdde-0310-9447-f3009e2ae8c0
      61b3b113
    • Thierry Geraud's avatar
      2006-10-17 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · 6d7945c2
      Thierry Geraud authored
      	Add basic function to remove '*', '&', "const", and "[]" from
      	types.
      	
      	* mlc/basic.hh: New.
      	* mlc/is_a.hh (mlc_is_a, mlc_is_a_): Use basic_ for T.
      	(mlc_is_not_a, mlc_is_not_a_): Likewise.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@653 4aad255d-cdde-0310-9447-f3009e2ae8c0
      6d7945c2
    • Thierry Geraud's avatar
      2006-10-17 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · 6317f522
      Thierry Geraud authored
      	Replace the 'is_mutable' property by checking the 'lvalue' type.
      	
      	* oln/core/automatic/image/image_being_mutable.hh: Rename as...
      	* oln/core/automatic/image/mutable_image.hh: ...this.
      	(image_being_mutable): Rename as...
      	(mutable_image): ...this.
      	* oln/level/fill.hh: Update.
      	* oln/core/typedefs.hh (is_mutable_type): Remove; obsolete.
      	* oln/core/abstract/image/mutability/hierarchy.hh
      	(include) : Update.
      	(image_being_mutable): Rename as...
      	(mutable_image): ...this.
      	(case_): Rely now on mlc_is_ok(oln_lvalue(E)).
      	* oln/core/1d/image1d.hh: Update.
      	* oln/core/2d/image2d.hh: Update.
      	* oln/core/3d/image3d.hh: Update.
      	* oln/core/gen/mapimage.hh: Update.
      	* oln/morpher/value_cast.hh: Update.
      	* oln/morpher/thru_fun.hh: Update.
      	* oln/morpher/internal/image_value_morpher.hh: Update.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@652 4aad255d-cdde-0310-9447-f3009e2ae8c0
      6317f522
    • Thierry Geraud's avatar
      2006-10-17 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · a4fff6b3
      Thierry Geraud authored
      	Add computability image hierarchy.
      	
      	* oln/core/abstract/image/computability: New.
      	* oln/core/abstract/image/computability/hierarchy.hh: New.
      	* oln/core/typedefs.hh (is_computed_type): New.
      	* oln/core/image_entry.hh (is_computed_type): New in vtypes.
      	* oln/core/abstract/image.hh (decl): Update.
      	* oln/core/abstract/image/hierarchies.hh
      	(image_hierarchy_wrt_computability): New.
      	(hierarchy): Update ids.
      	* oln/core/abstract/image/all.hh
      	(include): Add computability/hierarchy.hh.
      	* oln/core/1d/image1d.hh: Update.
      	* oln/core/2d/image2d.hh: Likewise.
      	* oln/core/3d/image3d.hh: Likewise.
      	* oln/core/gen/mapimage.hh: Likewise.
      	* oln/morpher/value_cast.hh: Likewise.
      	* oln/morpher/thru_fun.hh: Likewise.
      	* oln/morpher/internal/image_value_morpher.hh: Likewise.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@651 4aad255d-cdde-0310-9447-f3009e2ae8c0
      a4fff6b3