// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2008-2012 Bruno Lalande, Paris, France. // Copyright (c) 2009-2012 Mateusz Loskot, London, UK. // This file was modified by Oracle on 2013-2022. // Modifications copyright (c) 2013-2022 Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands. // 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_ALGORITHMS_DETAIL_WITHIN_IMPLEMENTATION_HPP #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_WITHIN_IMPLEMENTATION_HPP #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace boost { namespace geometry { #ifndef DOXYGEN_NO_DETAIL namespace detail { namespace within { struct use_point_in_geometry { template static inline bool apply(Geometry1 const& geometry1, Geometry2 const& geometry2, Strategy const& strategy) { return detail::within::within_point_geometry(geometry1, geometry2, strategy); } }; struct use_relate { template static inline bool apply(Geometry1 const& geometry1, Geometry2 const& geometry2, Strategy const& strategy) { return detail::relate::relate_impl < detail::de9im::static_mask_within_type, Geometry1, Geometry2 >::apply(geometry1, geometry2, strategy); } }; }} // namespace detail::within #endif // DOXYGEN_NO_DETAIL #ifndef DOXYGEN_NO_DISPATCH namespace dispatch { template struct within { template static inline bool apply(Point const& point, Box const& box, Strategy const& strategy) { return strategy.within(point, box).apply(point, box); } }; template struct within { template static inline bool apply(Box1 const& box1, Box2 const& box2, Strategy const& strategy) { assert_dimension_equal(); return strategy.within(box1, box2).apply(box1, box2); } }; // P/P template struct within : public detail::within::use_point_in_geometry {}; template struct within : public detail::within::use_point_in_geometry {}; template struct within : public detail::within::multi_point_point {}; template struct within : public detail::within::multi_point_multi_point {}; // P/L template struct within : public detail::within::use_point_in_geometry {}; template struct within : public detail::within::use_point_in_geometry {}; template struct within : public detail::within::use_point_in_geometry {}; template struct within : public detail::within::multi_point_single_geometry {}; template struct within : public detail::within::multi_point_single_geometry {}; template struct within : public detail::within::multi_point_multi_geometry {}; // P/A template struct within : public detail::within::use_point_in_geometry {}; template struct within : public detail::within::use_point_in_geometry {}; template struct within : public detail::within::use_point_in_geometry {}; template struct within : public detail::within::multi_point_single_geometry {}; template struct within : public detail::within::multi_point_single_geometry {}; template struct within : public detail::within::multi_point_multi_geometry {}; // L/L template struct within : public detail::within::use_relate {}; template struct within : public detail::within::use_relate {}; template struct within : public detail::within::use_relate {}; template struct within : public detail::within::use_relate {}; // L/A template struct within : public detail::within::use_relate {}; template struct within : public detail::within::use_relate {}; template struct within : public detail::within::use_relate {}; template struct within : public detail::within::use_relate {}; template struct within : public detail::within::use_relate {}; template struct within : public detail::within::use_relate {}; // A/A template struct within : public detail::within::use_relate {}; template struct within : public detail::within::use_relate {}; template struct within : public detail::within::use_relate {}; template struct within : public detail::within::use_relate {}; template struct within : public detail::within::use_relate {}; template struct within : public detail::within::use_relate {}; template struct within : public detail::within::use_relate {}; template struct within : public detail::within::use_relate {}; template struct within : public detail::within::use_relate {}; } // namespace dispatch #endif // DOXYGEN_NO_DISPATCH }} // namespace boost::geometry #include #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_WITHIN_IMPLEMENTATION_HPP