1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
5 // This file was modified by Oracle on 2013, 2014, 2015.
6 // Modifications copyright (c) 2013-2015 Oracle and/or its affiliates.
8 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
10 // Use, modification and distribution is subject to the Boost Software License,
11 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
12 // http://www.boost.org/LICENSE_1_0.txt)
14 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_RELATE_RELATE_IMPL_HPP
15 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_RELATE_RELATE_IMPL_HPP
17 #include <boost/mpl/if.hpp>
18 #include <boost/mpl/or.hpp>
19 #include <boost/type_traits/is_base_of.hpp>
21 #include <boost/geometry/algorithms/detail/relate/interface.hpp>
22 #include <boost/geometry/algorithms/not_implemented.hpp>
23 #include <boost/geometry/core/tag.hpp>
25 namespace boost { namespace geometry {
28 #ifndef DOXYGEN_NO_DETAIL
29 namespace detail { namespace relate {
31 struct implemented_tag {};
33 template <template <typename, typename> class StaticMaskTrait,
43 nyi::not_implemented_tag,
44 StaticMaskTrait<Geometry1, Geometry2>
48 nyi::not_implemented_tag,
49 dispatch::relate<Geometry1, Geometry2>
54 typename geometry::tag<Geometry1>::type,
55 typename geometry::tag<Geometry2>::type
60 static inline bool apply(Geometry1 const& g1, Geometry2 const& g2)
62 typename detail::relate::result_handler_type
66 typename StaticMaskTrait<Geometry1, Geometry2>::type
69 dispatch::relate<Geometry1, Geometry2>::apply(g1, g2, handler);
71 return handler.result();
75 }} // namespace detail::relate
76 #endif // DOXYGEN_NO_DETAIL
78 }} // namespace boost::geometry
80 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_RELATE_RELATE_IMPL_HPP