Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-21 08:45:50

0001 // Boost.Geometry (aka GGL, Generic Geometry Library)
0002 
0003 // Copyright (c) 2025 Barend Gehrels, Amsterdam, the Netherlands.
0004 
0005 // Use, modification and distribution is subject to the Boost Software License,
0006 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0007 // http://www.boost.org/LICENSE_1_0.txt)
0008 
0009 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_GRAPH_IS_OPERATION_INCLUDED_HPP
0010 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_GRAPH_IS_OPERATION_INCLUDED_HPP
0011 
0012 #include <boost/geometry/algorithms/detail/overlay/overlay_type.hpp>
0013 #include <boost/geometry/algorithms/detail/overlay/overlay_type.hpp>
0014 
0015 namespace boost { namespace geometry
0016 {
0017 
0018 #ifndef DOXYGEN_NO_DETAIL
0019 namespace detail { namespace overlay
0020 {
0021 
0022 template <operation_type target_operation>
0023 struct is_operation_included {};
0024 
0025 template <>
0026 struct is_operation_included<operation_intersection>
0027 {
0028     template <typename Operation>
0029     static bool apply(Operation const& op)
0030     {
0031         return op.enriched.count_right >= 2;
0032     }
0033 };
0034 
0035 template <>
0036 struct is_operation_included<operation_union>
0037 {
0038     template <typename Operation>
0039     static bool apply(Operation const& op)
0040     {
0041         return op.enriched.count_left == 0;
0042     }
0043 };
0044 
0045 }} // namespace detail::overlay
0046 #endif // DOXYGEN_NO_DETAIL
0047 
0048 }} // namespace boost::geometry
0049 
0050 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_GRAPH_IS_OPERATION_INCLUDED_HPP