3 // Copyright (c) 2017-2018, Oracle and/or its affiliates.
4 // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
5 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
7 // Use, modification and distribution is subject to the Boost Software License,
8 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
11 #ifndef BOOST_GEOMETRY_STRATEGIES_DISJOINT_HPP
12 #define BOOST_GEOMETRY_STRATEGIES_DISJOINT_HPP
15 #include <boost/mpl/assert.hpp>
16 #include <boost/type_traits/is_same.hpp>
18 #include <boost/geometry/core/cs.hpp>
19 #include <boost/geometry/core/point_type.hpp>
20 #include <boost/geometry/core/topological_dimension.hpp>
22 #include <boost/geometry/strategies/covered_by.hpp>
23 #include <boost/geometry/strategies/default_strategy.hpp>
24 #include <boost/geometry/strategies/relate.hpp>
27 namespace boost { namespace geometry { namespace strategy { namespace disjoint
30 #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
38 typename Tag1 = typename geometry::tag<Geometry1>::type,
39 typename Tag2 = typename geometry::tag<Geometry2>::type,
40 int TopDim1 = geometry::topological_dimension<Geometry1>::value,
41 int TopDim2 = geometry::topological_dimension<Geometry2>::value,
42 typename CsTag1 = typename cs_tag<Geometry1>::type,
43 typename CsTag2 = typename cs_tag<Geometry2>::type
45 struct default_strategy
46 : relate::services::default_strategy
52 template <typename Point, typename Box>
53 struct default_strategy<Point, Box, point_tag, box_tag, 0, 2>
54 : strategy::covered_by::services::default_strategy<Point, Box>
57 template <typename Box, typename Point>
58 struct default_strategy<Box, Point, box_tag, point_tag, 2, 0>
59 : strategy::covered_by::services::default_strategy<Point, Box>
62 template <typename MultiPoint, typename Box>
63 struct default_strategy<MultiPoint, Box, multi_point_tag, box_tag, 0, 2>
64 : strategy::covered_by::services::default_strategy
66 typename point_type<MultiPoint>::type,
71 template <typename Box, typename MultiPoint>
72 struct default_strategy<Box, MultiPoint, box_tag, multi_point_tag, 2, 0>
73 : strategy::covered_by::services::default_strategy
75 typename point_type<MultiPoint>::type,
80 } // namespace services
81 #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
83 }}}} // namespace boost::geometry::strategy::disjoint
86 #endif // BOOST_GEOMETRY_STRATEGIES_DISJOINT_HPP