123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- // Boost.Geometry
- // Copyright (c) 2017-2020, Oracle and/or its affiliates.
- // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
- // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
- // 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_STRATEGIES_DISJOINT_HPP
- #define BOOST_GEOMETRY_STRATEGIES_DISJOINT_HPP
- #include <boost/geometry/core/cs.hpp>
- #include <boost/geometry/core/point_type.hpp>
- #include <boost/geometry/core/topological_dimension.hpp>
- #include <boost/geometry/strategies/covered_by.hpp>
- #include <boost/geometry/strategies/default_strategy.hpp>
- #include <boost/geometry/strategy/relate.hpp>
- namespace boost { namespace geometry { namespace strategy { namespace disjoint
- {
- #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
- namespace services
- {
- template
- <
- typename Geometry1,
- typename Geometry2,
- typename Tag1 = typename geometry::tag<Geometry1>::type,
- typename Tag2 = typename geometry::tag<Geometry2>::type,
- int TopDim1 = geometry::topological_dimension<Geometry1>::value,
- int TopDim2 = geometry::topological_dimension<Geometry2>::value,
- typename CsTag1 = typename cs_tag<Geometry1>::type,
- typename CsTag2 = typename cs_tag<Geometry2>::type
- >
- struct default_strategy
- : relate::services::default_strategy
- <
- Geometry1, Geometry2
- >
- {};
- template <typename Point, typename Box>
- struct default_strategy<Point, Box, point_tag, box_tag, 0, 2>
- : strategy::covered_by::services::default_strategy<Point, Box>
- {};
- template <typename Box, typename Point>
- struct default_strategy<Box, Point, box_tag, point_tag, 2, 0>
- : strategy::covered_by::services::default_strategy<Point, Box>
- {};
- template <typename MultiPoint, typename Box>
- struct default_strategy<MultiPoint, Box, multi_point_tag, box_tag, 0, 2>
- : strategy::covered_by::services::default_strategy
- <
- typename point_type<MultiPoint>::type,
- Box
- >
- {};
- template <typename Box, typename MultiPoint>
- struct default_strategy<Box, MultiPoint, box_tag, multi_point_tag, 2, 0>
- : strategy::covered_by::services::default_strategy
- <
- typename point_type<MultiPoint>::type,
- Box
- >
- {};
- } // namespace services
- #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
- }}}} // namespace boost::geometry::strategy::disjoint
- #endif // BOOST_GEOMETRY_STRATEGIES_DISJOINT_HPP
|