1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
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)
9 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_OVERLAY_TYPE_HPP
10 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_OVERLAY_TYPE_HPP
14 namespace boost { namespace geometry
17 // TODO: move to detail
24 overlay_dissolve_union,
25 overlay_dissolve_intersection
28 #ifndef DOXYGEN_NO_DETAIL
29 namespace detail { namespace overlay
36 operation_intersection,
43 template <overlay_type OverlayType>
44 struct operation_from_overlay
49 struct operation_from_overlay<overlay_union>
51 static const operation_type value = operation_union;
55 struct operation_from_overlay<overlay_buffer>
57 static const operation_type value = operation_union;
61 struct operation_from_overlay<overlay_intersection>
63 static const operation_type value = operation_intersection;
67 struct operation_from_overlay<overlay_difference>
69 static const operation_type value = operation_intersection;
73 struct operation_from_overlay<overlay_dissolve_union>
75 static const operation_type value = operation_union;
79 struct operation_from_overlay<overlay_dissolve_intersection>
81 static const operation_type value = operation_intersection;
85 }} // namespace detail::overlay
86 #endif //DOXYGEN_NO_DETAIL
89 }} // namespace boost::geometry
92 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_OVERLAY_TYPE_HPP