Blame view

3rdparty/boost_1_81_0/boost/geometry/strategies/disjoint.hpp 2.51 KB
63e88f80   Hu Chunming   提交三方库
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
  // Boost.Geometry
  
  // Copyright (c) 2017-2020, Oracle and/or its affiliates.
  // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
  // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  
  // Use, modification and distribution is subject to the Boost Software License,
  // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  // http://www.boost.org/LICENSE_1_0.txt)
  
  #ifndef BOOST_GEOMETRY_STRATEGIES_DISJOINT_HPP
  #define BOOST_GEOMETRY_STRATEGIES_DISJOINT_HPP
  
  
  #include <boost/geometry/core/cs.hpp>
  #include <boost/geometry/core/point_type.hpp>
  #include <boost/geometry/core/topological_dimension.hpp>
  
  #include <boost/geometry/strategies/covered_by.hpp>
  #include <boost/geometry/strategies/default_strategy.hpp>
  
  #include <boost/geometry/strategy/relate.hpp>
  
  
  namespace boost { namespace geometry { namespace strategy { namespace disjoint
  {
  
  #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
  namespace services
  {
  
  template
  <
      typename Geometry1,
      typename Geometry2,
      typename Tag1 = typename geometry::tag<Geometry1>::type,
      typename Tag2 = typename geometry::tag<Geometry2>::type,
      int TopDim1 = geometry::topological_dimension<Geometry1>::value,
      int TopDim2 = geometry::topological_dimension<Geometry2>::value,
      typename CsTag1 = typename cs_tag<Geometry1>::type,
      typename CsTag2 = typename cs_tag<Geometry2>::type
  >
  struct default_strategy
      : relate::services::default_strategy
          <
              Geometry1, Geometry2
          >
  {};
  
  template <typename Point, typename Box>
  struct default_strategy<Point, Box, point_tag, box_tag, 0, 2>
      : strategy::covered_by::services::default_strategy<Point, Box>
  {};
  
  template <typename Box, typename Point>
  struct default_strategy<Box, Point, box_tag, point_tag, 2, 0>
      : strategy::covered_by::services::default_strategy<Point, Box>
  {};
  
  template <typename MultiPoint, typename Box>
  struct default_strategy<MultiPoint, Box, multi_point_tag, box_tag, 0, 2>
      : strategy::covered_by::services::default_strategy
          <
              typename point_type<MultiPoint>::type,
              Box
          >
  {};
  
  template <typename Box, typename MultiPoint>
  struct default_strategy<Box, MultiPoint, box_tag, multi_point_tag, 2, 0>
      : strategy::covered_by::services::default_strategy
          <
              typename point_type<MultiPoint>::type,
              Box
          >
  {};
  
  } // namespace services
  #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
  
  }}}} // namespace boost::geometry::strategy::disjoint
  
  
  #endif // BOOST_GEOMETRY_STRATEGIES_DISJOINT_HPP