]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/geometry/strategies/disjoint.hpp
c111d2b8f57a38426c065ab59067ac5e85be3bd9
[ceph.git] / ceph / src / boost / boost / geometry / strategies / disjoint.hpp
1 // Boost.Geometry
2
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
6
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)
10
11 #ifndef BOOST_GEOMETRY_STRATEGIES_DISJOINT_HPP
12 #define BOOST_GEOMETRY_STRATEGIES_DISJOINT_HPP
13
14
15 #include <boost/mpl/assert.hpp>
16 #include <boost/type_traits/is_same.hpp>
17
18 #include <boost/geometry/core/cs.hpp>
19 #include <boost/geometry/core/point_type.hpp>
20 #include <boost/geometry/core/topological_dimension.hpp>
21
22 #include <boost/geometry/strategies/covered_by.hpp>
23 #include <boost/geometry/strategies/default_strategy.hpp>
24 #include <boost/geometry/strategies/relate.hpp>
25
26
27 namespace boost { namespace geometry { namespace strategy { namespace disjoint
28 {
29
30 #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
31 namespace services
32 {
33
34 template
35 <
36 typename Geometry1,
37 typename Geometry2,
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
44 >
45 struct default_strategy
46 : relate::services::default_strategy
47 <
48 Geometry1, Geometry2
49 >
50 {};
51
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>
55 {};
56
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>
60 {};
61
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
65 <
66 typename point_type<MultiPoint>::type,
67 Box
68 >
69 {};
70
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
74 <
75 typename point_type<MultiPoint>::type,
76 Box
77 >
78 {};
79
80 } // namespace services
81 #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
82
83 }}}} // namespace boost::geometry::strategy::disjoint
84
85
86 #endif // BOOST_GEOMETRY_STRATEGIES_DISJOINT_HPP