Chris@102: // Boost.Geometry (aka GGL, Generic Geometry Library) Chris@102: Chris@102: // Copyright (c) 2014 Oracle and/or its affiliates. Chris@102: Chris@102: // Use, modification and distribution is subject to the Boost Software License, Chris@102: // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@102: // http://www.boost.org/LICENSE_1_0.txt) Chris@102: Chris@102: // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle Chris@102: Chris@102: #ifndef BOOST_GEOMETRY_STRATEGY_AGNOSTIC_RELATE_HPP Chris@102: #define BOOST_GEOMETRY_STRATEGY_AGNOSTIC_RELATE_HPP Chris@102: Chris@102: #include Chris@102: Chris@102: Chris@102: namespace boost { namespace geometry Chris@102: { Chris@102: Chris@102: namespace strategy { namespace relate Chris@102: { Chris@102: Chris@102: template Chris@102: struct relate Chris@102: { Chris@102: static inline bool apply(Geometry1 const& geometry1, Geometry2 const& geometry2) Chris@102: { Chris@102: return detail::relate::relate(geometry1, geometry2); Chris@102: } Chris@102: }; Chris@102: Chris@102: } // namespace relate Chris@102: Chris@102: namespace within Chris@102: { Chris@102: Chris@102: #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS Chris@102: Chris@102: namespace services Chris@102: { Chris@102: Chris@102: Chris@102: template Chris@102: struct default_strategy Chris@102: { Chris@102: typedef strategy::relate::relate Chris@102: < Chris@102: Geometry1, Chris@102: Geometry2, Chris@102: detail::relate::static_mask_within Chris@102: > type; Chris@102: }; Chris@102: Chris@102: template Chris@102: struct default_strategy Chris@102: { Chris@102: typedef strategy::relate::relate Chris@102: < Chris@102: Geometry1, Chris@102: Geometry2, Chris@102: detail::relate::static_mask_within Chris@102: > type; Chris@102: }; Chris@102: Chris@102: Chris@102: } // namespace services Chris@102: Chris@102: #endif Chris@102: Chris@102: Chris@102: }} // namespace strategy::within Chris@102: Chris@102: Chris@102: Chris@102: #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS Chris@102: namespace strategy { namespace covered_by { namespace services Chris@102: { Chris@102: Chris@102: Chris@102: template Chris@102: struct default_strategy Chris@102: { Chris@102: typedef strategy::relate::relate Chris@102: < Chris@102: Geometry1, Chris@102: Geometry2, Chris@102: detail::relate::static_mask_covered_by Chris@102: > type; Chris@102: }; Chris@102: Chris@102: template Chris@102: struct default_strategy Chris@102: { Chris@102: typedef strategy::relate::relate Chris@102: < Chris@102: Geometry1, Chris@102: Geometry2, Chris@102: detail::relate::static_mask_covered_by Chris@102: > type; Chris@102: }; Chris@102: Chris@102: Chris@102: }}} // namespace strategy::covered_by::services Chris@102: #endif Chris@102: Chris@102: Chris@102: }} // namespace boost::geometry Chris@102: Chris@102: Chris@102: #endif // BOOST_GEOMETRY_STRATEGY_AGNOSTIC_RELATE_HPP