]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/geometry/algorithms/detail/overlay/overlay_type.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / geometry / algorithms / detail / overlay / overlay_type.hpp
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2
3 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
4
5 // Use, modification and distribution is subject to the Boost Software License,
6 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8
9 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_OVERLAY_TYPE_HPP
10 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_OVERLAY_TYPE_HPP
11
12
13
14 namespace boost { namespace geometry
15 {
16
17 // TODO: move to detail
18 enum overlay_type
19 {
20 overlay_union,
21 overlay_intersection,
22 overlay_difference,
23 overlay_buffer,
24 overlay_dissolve_union,
25 overlay_dissolve_intersection
26 };
27
28 #ifndef DOXYGEN_NO_DETAIL
29 namespace detail { namespace overlay
30 {
31
32 enum operation_type
33 {
34 operation_none,
35 operation_union,
36 operation_intersection,
37 operation_blocked,
38 operation_continue,
39 operation_opposite
40 };
41
42
43 template <overlay_type OverlayType>
44 struct operation_from_overlay
45 {
46 };
47
48 template <>
49 struct operation_from_overlay<overlay_union>
50 {
51 static const operation_type value = operation_union;
52 };
53
54 template <>
55 struct operation_from_overlay<overlay_buffer>
56 {
57 static const operation_type value = operation_union;
58 };
59
60 template <>
61 struct operation_from_overlay<overlay_intersection>
62 {
63 static const operation_type value = operation_intersection;
64 };
65
66 template <>
67 struct operation_from_overlay<overlay_difference>
68 {
69 static const operation_type value = operation_intersection;
70 };
71
72 template <>
73 struct operation_from_overlay<overlay_dissolve_union>
74 {
75 static const operation_type value = operation_union;
76 };
77
78 template <>
79 struct operation_from_overlay<overlay_dissolve_intersection>
80 {
81 static const operation_type value = operation_intersection;
82 };
83
84
85 }} // namespace detail::overlay
86 #endif //DOXYGEN_NO_DETAIL
87
88
89 }} // namespace boost::geometry
90
91
92 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_OVERLAY_TYPE_HPP