Files
cgal/Kernel_23
Laurent Rineau 665c0ea8c1 Kernel::Compare_Squared_distance_[23]::operator() has now the following
overloads:

  template <typename T1, typename T2> 
  Comparison_result 
  operator()(T1, T2, Kernel::FT);

and 

  template <typename T1, typename T2, typename T3, typename T4> 
  Comparison_result 
  operator()(T1, T2, T3, T4); // compare distances |t1, t2|^2 and |t3, t4|^2.

Before that revision, the types T_i were hardcoded to Kernel::Point_3
without any reason.

And Kernel::Compare_Squared_distance_2 and
Kernel::Compare_Squared_distance_3 now have the same implementation, and
almost the same documentation (but the set of admitted input types). The
implementations could even have been factorized.

(The Kernel_23 testsuite passes on Linux, as well as the doc_tex testsuite.)
2010-06-30 12:19:54 +00:00
..
2009-08-24 17:10:04 +00:00

When adding a new function object to the kernel you must:

  -- possibly change include/CGAL/Kernel/function_objects.h
     to add a new function object "builder" in namespace internal::
  -- change include/CGAL/Kernel/interface_macros.h
     to add the actual function object class and its corresponding 
     member function that returns an object of this class 
  -- change test/Kernel/include/CGAL/_test_new_2.h and/or
     test/Kernel/include/CGAL/_test_new_3.h to add the test
     for this function object.
  -- in the directory doc_tex/kernel/Ref add a file called
     Kernel_<NewFunctionObject> that describes the requirements for
     this function object type (see the other similarly named files in this
     directory)
      -- This functor should have a SeeAlso entry for the global function(s)
         or class(es) that provide the same functionality in the imperative
         interface
  -- add <New_function_object> to the set of requirements for the Kernel
     concept in the file doc_tex/kernel/Ref/Kernel.tex.  
  -- in the file doc_tex/kernel/Ref/ref_manual.tex add the command
        \input{Ref/Kernel_<New function object>} 
     in the proper place 
  -- in the file doc_tex/kernel/kernel_toc add a ccRefConceptPage command
     for the page in the proper place.