// 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); you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 3 of the License, // or (at your option) any later version. // // Licensees holding a valid commercial license may use this file in // accordance with the commercial license agreement provided with the software. // // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. // // $URL$ // $Id$ // SPDX-License-Identifier: LGPL-3.0+ // // 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