1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2007-2014 Barend Gehrels, Amsterdam, the Netherlands.
4 // Copyright (c) 2008-2014 Bruno Lalande, Paris, France.
5 // Copyright (c) 2009-2014 Mateusz Loskot, London, UK.
6 // Copyright (c) 2013-2014 Adam Wulkiewicz, Lodz, Poland.
8 // This file was modified by Oracle on 2013-2017.
9 // Modifications copyright (c) 2013-2017, Oracle and/or its affiliates.
11 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
12 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
14 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
15 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
17 // Use, modification and distribution is subject to the Boost Software License,
18 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
19 // http://www.boost.org/LICENSE_1_0.txt)
21 #ifndef BOOST_GEOMETRY_ALGORITHMS_DISPATCH_DISJOINT_HPP
22 #define BOOST_GEOMETRY_ALGORITHMS_DISPATCH_DISJOINT_HPP
26 #include <boost/geometry/core/tag.hpp>
27 #include <boost/geometry/core/tag_cast.hpp>
28 #include <boost/geometry/core/tags.hpp>
29 #include <boost/geometry/core/reverse_dispatch.hpp>
31 #include <boost/geometry/algorithms/not_implemented.hpp>
34 namespace boost { namespace geometry
38 #ifndef DOXYGEN_NO_DISPATCH
45 typename Geometry1, typename Geometry2,
46 std::size_t DimensionCount = dimension<Geometry1>::type::value,
47 typename Tag1 = typename tag_cast
49 typename tag<Geometry1>::type,
50 segment_tag, box_tag, linear_tag, areal_tag
52 typename Tag2 = typename tag_cast
54 typename tag<Geometry2>::type,
55 segment_tag, box_tag, linear_tag, areal_tag
57 bool Reverse = reverse_dispatch<Geometry1, Geometry2>::type::value
60 : not_implemented<Geometry1, Geometry2>
64 // If reversal is needed, perform it
67 typename Geometry1, typename Geometry2,
68 std::size_t DimensionCount,
69 typename Tag1, typename Tag2
71 struct disjoint<Geometry1, Geometry2, DimensionCount, Tag1, Tag2, true>
73 template <typename Strategy>
74 static inline bool apply(Geometry1 const& g1, Geometry2 const& g2, Strategy const& strategy)
81 >::apply(g2, g1, strategy);
86 } // namespace dispatch
87 #endif // DOXYGEN_NO_DISPATCH
90 }} // namespace boost::geometry
93 #endif // BOOST_GEOMETRY_ALGORITHMS_DISPATCH_DISJOINT_HPP