diff --git a/Packages/Kernel_23/doc_tex/kernel/extensible_kernel.tex b/Packages/Kernel_23/doc_tex/kernel/extensible_kernel.tex index cb4b3df475c..556415ecdb4 100644 --- a/Packages/Kernel_23/doc_tex/kernel/extensible_kernel.tex +++ b/Packages/Kernel_23/doc_tex/kernel/extensible_kernel.tex @@ -180,68 +180,12 @@ scavenge code. We won't explain it in detail, but you see that there are \ccc{typedefs} to the new point class and the functors. All the other types are inherited. + + \ccHtmlLinksOff -\begin{ccExampleCode} -#ifndef MYKERNEL_H -#define MYKERNEL_H -#include -#include +\ccIncludeExampleCode{Kernel_23/MyKernel.h} - -#include "MyPointC2.h" - -// Taken from include/CGAL/Cartesian/Cartesian_base.h - -template < typename K_ > -struct MyCartesian_base : public CGAL::Cartesian_base< K_ > -{ - typedef K_ Kernel; - typedef CGAL::Cartesian_base< K_ > Base; - typedef MyPointC2 Point_2; - typedef MyConstruct_point_2 Construct_point_2; - typedef const double* Cartesian_const_iterator_2; - typedef MyConstruct_coord_iterator Construct_cartesian_const_iterator_2; - typedef MyConstruct_bbox_2 - Construct_bbox_2; -}; - - -// Taken from include/CGAL/Cartesian.h - -template < typename FT_, typename Kernel > -struct MyCartesian_base_no_ref_count - : public MyCartesian_base< Kernel > -{ - typedef FT_ RT; - typedef FT_ FT; - - // The mecanism that allows to specify reference-counting or not. - template < typename T > - struct Handle { typedef CGAL::Simple_Handle_for type; }; - - template < typename Kernel2 > - struct Base { typedef MyCartesian_base_no_ref_count Type; }; - - static FT make_FT(const RT & num, const RT& denom) { return num/denom;} - static FT make_FT(const RT & num) { return num;} - static RT FT_numerator(const FT &r) { return r;} - static RT FT_denominator(const FT &) { return RT(1);} -}; - -template < typename FT_ > -struct MyKernel - : public MyCartesian_base_no_ref_count > -{ -public: - typedef MyCartesian_base_no_ref_count > Kernel_base; -}; - -CGAL_ITERATOR_TRAITS_POINTER_SPEC_TEMPLATE(MyKernel) - -#endif // MYKERNEL_H - -\end{ccExampleCode} \ccHtmlLinksOn