From fbbd583b7979862528f0a75f3e6fcc9ed3b286a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Mon, 1 May 2017 16:17:55 +0200 Subject: [PATCH] Removed useless class Regular_traits_adaptor_2.h --- .../include/CGAL/Regular_traits_adaptor_2.h | 199 ------------------ 1 file changed, 199 deletions(-) delete mode 100644 Triangulation_2/include/CGAL/Regular_traits_adaptor_2.h diff --git a/Triangulation_2/include/CGAL/Regular_traits_adaptor_2.h b/Triangulation_2/include/CGAL/Regular_traits_adaptor_2.h deleted file mode 100644 index 281dcd22e48..00000000000 --- a/Triangulation_2/include/CGAL/Regular_traits_adaptor_2.h +++ /dev/null @@ -1,199 +0,0 @@ -// Copyright (c) 1999-2004,2006-2009,2014-2015 INRIA Sophia-Antipolis (France). -// 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 -// 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$ -// -// -// Author(s) : Monique Teillaud -// Sylvain Pion -// Andreas Fabri -// Nico Kruithof -// Manuel Caroli -// Aymeric Pellé -#ifndef CGAL_REGULAR_TRAITS_ADAPTOR_2_H -#define CGAL_REGULAR_TRAITS_ADAPTOR_2_H - -#include - -#include - -namespace CGAL { - - template < class RTT, class ConstructPoint, class Functor_> -class Regular_traits_adaptor_2 -{ - const ConstructPoint cp; - const Functor_ f; - - typedef RTT RTraits; - typedef Functor_ Functor; - - typedef typename RTraits::FT FT; - typedef typename RTraits::Triangle_2 Triangle_2; - typedef typename RTraits::Segment_2 Segment_2; - typedef typename RTraits::Circle_2 Circle_2; - - typedef typename RTT::Point_2 Point_2; - typedef typename RTT::Weighted_point_2 Weighted_point_2; - - template - struct Conv_wp_to_p - { - typedef typename boost::remove_reference::type T_no_ref; - - typedef typename boost::mpl::if_< - typename boost::is_const::type, - typename boost::mpl::if_::type, - const Point_2&, - const Point_2>::type, - typename boost::mpl::if_::type, - Point_2&, - Point_2>::type >::type type; - }; - - template struct result {}; - - template struct result { - typedef typename Conv_wp_to_p::type A0p; - typedef typename cpp11::result_of::type type; - }; - - template struct result { - typedef typename Conv_wp_to_p::type A0p; - typedef typename Conv_wp_to_p::type A1p; - typedef typename cpp11::result_of::type type; - }; - - template struct result { - typedef typename Conv_wp_to_p::type A0p; - typedef typename Conv_wp_to_p::type A1p; - typedef typename Conv_wp_to_p::type A2p; - typedef typename cpp11::result_of::type type; - }; - - template - struct result { - typedef typename Conv_wp_to_p::type A0p; - typedef typename Conv_wp_to_p::type A1p; - typedef typename Conv_wp_to_p::type A2p; - typedef typename Conv_wp_to_p::type A3p; - typedef typename cpp11::result_of::type type; - }; - -public: - Regular_traits_adaptor_2 (const ConstructPoint& cp, const Functor& f) - : cp(cp), f(f) - { } - - - - typename cpp11::result_of::type operator() (const Triangle_2& t) const - { - return f(t); - } - - typename cpp11::result_of< Functor(Point_2,Point_2) >::type operator() (const Point_2& p0, const Point_2& p1) const - { - return f(p0, p1); - } - - typename cpp11::result_of< Functor(Point_2,Point_2, Point_2) >::type operator() (const Point_2& p0, const Point_2& p1, const Point_2& p2) const - { - return f(p0, p1, p2); - } - - typename cpp11::result_of< Functor(Point_2,Point_2, Point_2,Point_2) >::type operator() (const Point_2& p0, const Point_2& p1, const Point_2& p2, const Point_2& p3) const - { - return f(p0, p1, p2, p3); - } - - typename cpp11::result_of< Functor(Point_2,Origin) >::type operator() (const Point_2& p0, const Origin& o) const - { - return f(p0, o); - } - - typename cpp11::result_of< Functor(Point_2,Origin) >::type operator() (const Origin& o, const Point_2& p0) const - { - return f(o, p0); - } - - typename cpp11::result_of< Functor(Segment_2,Point_2) >::type operator() (const Segment_2& pl, const Point_2& p) const - { - return f(pl, p); - } - - typename cpp11::result_of< Functor(Point_2,Point_2) >::type operator() (const Weighted_point_2& p0, const Weighted_point_2& p1) const - { - return f(cp(p0), cp(p1)); - } - - typename cpp11::result_of< Functor(Point_2,Point_2) >::type operator() (const Point_2& p0, const Weighted_point_2& p1) const - { - return f(p0, cp(p1)); - } - - typename cpp11::result_of< Functor(Point_2,Point_2) >::type operator() (const Weighted_point_2& p0, const Point_2& p1) const - { - return f(cp(p0), p1); - } - - typename cpp11::result_of::type operator() (const Segment_2& p0, const Weighted_point_2& p1) const - { - return f(p0, cp(p1)); - } - - - typename cpp11::result_of::type operator() (const Weighted_point_2& p0, const Weighted_point_2& p1, - const Weighted_point_2& p2) const - { - return f(cp(p0), cp(p1), cp(p2)); - } - - typename cpp11::result_of::type operator() (const Weighted_point_2& p0, const Weighted_point_2& p1, - const Weighted_point_2& p2, const Weighted_point_2& p3) const - { - return f(cp(p0), cp(p1), cp(p2), cp(p3)); - } - - typename cpp11::result_of::type operator() (const Weighted_point_2& p0, const Weighted_point_2& p1, - const Point_2& p2) const - { - return f(cp(p0), cp(p1), p2); - } - - typename cpp11::result_of::type operator() (const Weighted_point_2& p0, const Weighted_point_2& p1, - const Weighted_point_2& p2, const Point_2& p3) const - { - return f(cp(p0), cp(p1), cp(p2), p3); - } - - typename cpp11::result_of::type operator() (const Point_2& p0, const Weighted_point_2& p1, - const Weighted_point_2& p2) const - { - return f(p0, cp(p1), cp(p2)); - } - - typename cpp11::result_of::type operator() (const Weighted_point_2& p0, const Weighted_point_2& p1, - const Weighted_point_2& p2, const Weighted_point_2& p3, - const FT w) const - { - return f(cp(p0), cp(p1), cp(p2), cp(p3), w); - } - -}; - -} // namespace CGAL - -#endif /* CGAL_REGULAR_TRAITS_ADAPTOR_2_H */