3 // Copyright (c) 2017-2020, 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/geometry/core/cs.hpp>
16 #include <boost/geometry/core/point_type.hpp>
17 #include <boost/geometry/core/topological_dimension.hpp>
19 #include <boost/geometry/strategies/covered_by.hpp>
20 #include <boost/geometry/strategies/default_strategy.hpp>
22 #include <boost/geometry/strategy/relate.hpp>
25 namespace boost { namespace geometry { namespace strategy { namespace disjoint
28 #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
36 typename Tag1 = typename geometry::tag<Geometry1>::type,
37 typename Tag2 = typename geometry::tag<Geometry2>::type,
38 int TopDim1 = geometry::topological_dimension<Geometry1>::value,
39 int TopDim2 = geometry::topological_dimension<Geometry2>::value,
40 typename CsTag1 = typename cs_tag<Geometry1>::type,
41 typename CsTag2 = typename cs_tag<Geometry2>::type
43 struct default_strategy
44 : relate::services::default_strategy
50 template <typename Point, typename Box>
51 struct default_strategy<Point, Box, point_tag, box_tag, 0, 2>
52 : strategy::covered_by::services::default_strategy<Point, Box>
55 template <typename Box, typename Point>
56 struct default_strategy<Box, Point, box_tag, point_tag, 2, 0>
57 : strategy::covered_by::services::default_strategy<Point, Box>
60 template <typename MultiPoint, typename Box>
61 struct default_strategy<MultiPoint, Box, multi_point_tag, box_tag, 0, 2>
62 : strategy::covered_by::services::default_strategy
64 typename point_type<MultiPoint>::type,
69 template <typename Box, typename MultiPoint>
70 struct default_strategy<Box, MultiPoint, box_tag, multi_point_tag, 2, 0>
71 : strategy::covered_by::services::default_strategy
73 typename point_type<MultiPoint>::type,
78 } // namespace services
79 #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
81 }}}} // namespace boost::geometry::strategy::disjoint
84 #endif // BOOST_GEOMETRY_STRATEGIES_DISJOINT_HPP