]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/geometry/include/boost/geometry/algorithms/detail/relate/implementation.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / geometry / include / boost / geometry / algorithms / detail / relate / implementation.hpp
CommitLineData
7c673cae
FG
1// Boost.Geometry (aka GGL, Generic Geometry Library)
2
3// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
4
5// This file was modified by Oracle on 2013, 2014, 2015.
6// Modifications copyright (c) 2013-2015 Oracle and/or its affiliates.
7
8// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
9
10// Use, modification and distribution is subject to the Boost Software License,
11// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
12// http://www.boost.org/LICENSE_1_0.txt)
13
14#ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_RELATE_IMPLEMENTATION_HPP
15#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_RELATE_IMPLEMENTATION_HPP
16
17
18#include <boost/geometry/core/tags.hpp>
19
20#include <boost/geometry/algorithms/detail/relate/interface.hpp>
21
22#include <boost/geometry/algorithms/detail/relate/point_point.hpp>
23#include <boost/geometry/algorithms/detail/relate/point_geometry.hpp>
24#include <boost/geometry/algorithms/detail/relate/linear_linear.hpp>
25#include <boost/geometry/algorithms/detail/relate/linear_areal.hpp>
26#include <boost/geometry/algorithms/detail/relate/areal_areal.hpp>
27
28
29namespace boost { namespace geometry {
30
31
32#ifndef DOXYGEN_NO_DISPATCH
33namespace dispatch {
34
35template <typename Point1, typename Point2>
36struct relate<Point1, Point2, point_tag, point_tag, 0, 0, false>
37 : detail::relate::point_point<Point1, Point2>
38{};
39
40template <typename Point, typename MultiPoint>
41struct relate<Point, MultiPoint, point_tag, multi_point_tag, 0, 0, false>
42 : detail::relate::point_multipoint<Point, MultiPoint>
43{};
44
45template <typename MultiPoint, typename Point>
46struct relate<MultiPoint, Point, multi_point_tag, point_tag, 0, 0, false>
47 : detail::relate::multipoint_point<MultiPoint, Point>
48{};
49
50template <typename MultiPoint1, typename MultiPoint2>
51struct relate<MultiPoint1, MultiPoint2, multi_point_tag, multi_point_tag, 0, 0, false>
52 : detail::relate::multipoint_multipoint<MultiPoint1, MultiPoint2>
53{};
54
55// TODO - for now commented out because before implementing it we must consider:
56// 1. how the Box degenerated to a Point should be treated
57// 2. what should be the definition of a Box degenerated to a Point
58// 3. what fields should the matrix/mask contain for dimension > 2 and dimension > 9
59//
60//template <typename Point, typename Box, int TopDim2>
61//struct relate<Point, Box, point_tag, box_tag, 0, TopDim2, false>
62// : detail::relate::point_box<Point, Box>
63//{};
64//
65//template <typename Box, typename Point, int TopDim1>
66//struct relate<Box, Point, box_tag, point_tag, TopDim1, 0, false>
67// : detail::relate::box_point<Box, Point>
68//{};
69
70
71template <typename Point, typename Geometry, typename Tag2, int TopDim2>
72struct relate<Point, Geometry, point_tag, Tag2, 0, TopDim2, true>
73 : detail::relate::point_geometry<Point, Geometry>
74{};
75
76template <typename Geometry, typename Point, typename Tag1, int TopDim1>
77struct relate<Geometry, Point, Tag1, point_tag, TopDim1, 0, true>
78 : detail::relate::geometry_point<Geometry, Point>
79{};
80
81
82template <typename Linear1, typename Linear2, typename Tag1, typename Tag2>
83struct relate<Linear1, Linear2, Tag1, Tag2, 1, 1, true>
84 : detail::relate::linear_linear<Linear1, Linear2>
85{};
86
87
88template <typename Linear, typename Areal, typename Tag1, typename Tag2>
89struct relate<Linear, Areal, Tag1, Tag2, 1, 2, true>
90 : detail::relate::linear_areal<Linear, Areal>
91{};
92
93template <typename Areal, typename Linear, typename Tag1, typename Tag2>
94struct relate<Areal, Linear, Tag1, Tag2, 2, 1, true>
95 : detail::relate::areal_linear<Areal, Linear>
96{};
97
98
99template <typename Areal1, typename Areal2, typename Tag1, typename Tag2>
100struct relate<Areal1, Areal2, Tag1, Tag2, 2, 2, true>
101 : detail::relate::areal_areal<Areal1, Areal2>
102{};
103
104} // namespace dispatch
105#endif // DOXYGEN_NO_DISPATCH
106
107
108}} // namespace boost::geometry
109
110#endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_RELATE_IMPLEMENTATION_HPP