]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/geometry/strategies/disjoint.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / geometry / strategies / disjoint.hpp
1 // Boost.Geometry
2
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
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/geometry/core/cs.hpp>
16 #include <boost/geometry/core/point_type.hpp>
17 #include <boost/geometry/core/topological_dimension.hpp>
18
19 #include <boost/geometry/strategies/covered_by.hpp>
20 #include <boost/geometry/strategies/default_strategy.hpp>
21
22 #include <boost/geometry/strategy/relate.hpp>
23
24
25 namespace boost { namespace geometry { namespace strategy { namespace disjoint
26 {
27
28 #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
29 namespace services
30 {
31
32 template
33 <
34 typename Geometry1,
35 typename Geometry2,
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
42 >
43 struct default_strategy
44 : relate::services::default_strategy
45 <
46 Geometry1, Geometry2
47 >
48 {};
49
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>
53 {};
54
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>
58 {};
59
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
63 <
64 typename point_type<MultiPoint>::type,
65 Box
66 >
67 {};
68
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
72 <
73 typename point_type<MultiPoint>::type,
74 Box
75 >
76 {};
77
78 } // namespace services
79 #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
80
81 }}}} // namespace boost::geometry::strategy::disjoint
82
83
84 #endif // BOOST_GEOMETRY_STRATEGIES_DISJOINT_HPP