// Copyright (c) 2017 // Utrecht University (The Netherlands), // ETH Zurich (Switzerland), // INRIA Sophia-Antipolis (France), // Max-Planck-Institute Saarbruecken (Germany), // and Tel-Aviv University (Israel). All rights reserved. // // This file is part of CGAL (www.cgal.org) // // $URL: https://github.com/CGAL/cgal/blob/v5.1/Kernel_23/include/CGAL/Exact_kernel_selector.h $ // $Id: Exact_kernel_selector.h 52164b1 2019-10-19T15:34:59+02:00 Sébastien Loriot // SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial // // Author(s) : Sylvain Pion, // Mael Rouxel-Labbé #ifndef CGAL_EXACT_KERNEL_SELECTOR_H #define CGAL_EXACT_KERNEL_SELECTOR_H // This class uses the Kernel tag to automatically choose // whether Cartesian_converter or Homogeneous_converter should be used #include #include #include #include #include #include namespace CGAL { template struct Exact_kernel_selector { typedef typename internal::Exact_field_selector::Type Exact_nt; typedef typename internal::Exact_ring_selector ::Type Exact_rt; typedef Simple_cartesian Exact_kernel; typedef Simple_cartesian Exact_kernel_rt; typedef Cartesian_converter C2E; typedef Cartesian_converter C2E_rt; typedef Cartesian_converter E2C; typedef Cartesian_converter E2C_rt; }; template struct Exact_kernel_selector { typedef typename internal::Exact_ring_selector::Type Exact_nt; typedef Simple_homogeneous Exact_kernel; typedef Exact_kernel Exact_kernel_rt; typedef Homogeneous_converter C2E; typedef C2E C2E_rt; typedef Homogeneous_converter E2C; typedef E2C E2C_rt; }; } // namespace CGAL #endif // CGAL_EXACT_KERNEL_SELECTOR_H