Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef ESBTL_CGAL_EPIC_KERNEL_WITH_ATOM
00036 #define ESBTL_CGAL_EPIC_KERNEL_WITH_ATOM
00037
00038
00039 #include <ESBTL/constants.h>
00040 #include <ESBTL/xyz_utils.h>
00041 #include <ESBTL/line_selectors.h>
00042 #include <ESBTL/builder.h>
00043 #include <ESBTL/line_reader.h>
00044 #include <ESBTL/PDB.h>
00045 #include <ESBTL/occupancy_handlers.h>
00046
00047 #include <ESBTL/molecular_system.h>
00048 #include <ESBTL/coarse_grain.h>
00049 #include <CGAL/Cartesian.h>
00050 #include <CGAL/Filtered_kernel.h>
00051
00052
00053 namespace ESBTL{
00054
00055 namespace CGAL{
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077 template < typename K_, typename K_Base >
00078 class Cartesian_kernel_base
00079 : public K_Base::template Base<K_>::Type
00080 {
00081 public:
00082 typedef K_ Kernel;
00083 typedef typename Molecular_system<Default_system_items,typename K_Base::Point_3 >::Atom Point_3;
00084
00085
00086
00087
00088 template < typename Kernel2 >
00089 struct Base { typedef Cartesian_kernel_base<Kernel2, K_Base> Type; };
00090 };
00091
00092
00093 template < typename FT_ >
00094 struct Kernel_with_atom
00095 : public ::CGAL::Type_equality_wrapper<
00096 Cartesian_kernel_base<Kernel_with_atom<FT_>, ::CGAL::Simple_cartesian<FT_> >,
00097 Kernel_with_atom<FT_> >
00098 {};
00099
00100
00101
00102
00103
00104 template < typename K_, typename K_Base >
00105 class Cartesian_kernel_base_cg
00106 : public K_Base::template Base<K_>::Type
00107 {
00108 typedef typename Molecular_system<System_items_with_coarse_grain,typename K_Base::Point_3 >::Atom Atom;
00109 public:
00110 typedef K_ Kernel;
00111 typedef Coarse_atom<Atom,typename K_Base::Point_3> Point_3;
00112
00113 template < typename Kernel2 >
00114 struct Base { typedef Cartesian_kernel_base_cg<Kernel2, K_Base> Type; };
00115 };
00116
00117
00118 template < typename FT_ >
00119 struct Kernel_with_coarse_atom
00120 : public ::CGAL::Type_equality_wrapper<
00121 Cartesian_kernel_base_cg<Kernel_with_coarse_atom<FT_>, ::CGAL::Simple_cartesian<FT_> >,
00122 Kernel_with_coarse_atom<FT_> >
00123 {};
00124
00126 typedef Molecular_system<Default_system_items, ::CGAL::Simple_cartesian<double>::Point_3 > Default_system;
00130 typedef ::CGAL::Filtered_kernel< Kernel_with_atom<double> > EPIC_kernel_with_atom;
00131
00133 typedef Molecular_system<System_items_with_coarse_grain, ::CGAL::Simple_cartesian<double>::Point_3 > System_with_coarse_grain;
00137 typedef ::CGAL::Filtered_kernel< Kernel_with_coarse_atom<double> > EPIC_kernel_with_coarse_atom;
00138
00139 } }
00140
00141
00142 #endif //ESBTL_CGAL_EPIC_KERNEL_WITH_ATOM
00143