12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- #ifndef BOOST_GEOMETRY_ALGORITHMS_DISPATCH_DISJOINT_HPP
- #define BOOST_GEOMETRY_ALGORITHMS_DISPATCH_DISJOINT_HPP
- #include <cstddef>
- #include <boost/geometry/core/coordinate_dimension.hpp>
- #include <boost/geometry/core/tag.hpp>
- #include <boost/geometry/core/tag_cast.hpp>
- #include <boost/geometry/core/tags.hpp>
- #include <boost/geometry/core/reverse_dispatch.hpp>
- #include <boost/geometry/algorithms/not_implemented.hpp>
- namespace boost { namespace geometry
- {
- #ifndef DOXYGEN_NO_DISPATCH
- namespace dispatch
- {
- template
- <
- typename Geometry1, typename Geometry2,
- std::size_t DimensionCount = dimension<Geometry1>::type::value,
- typename Tag1 = typename tag_cast
- <
- typename tag<Geometry1>::type,
- segment_tag, box_tag, linear_tag, areal_tag
- >::type,
- typename Tag2 = typename tag_cast
- <
- typename tag<Geometry2>::type,
- segment_tag, box_tag, linear_tag, areal_tag
- >::type,
- bool Reverse = reverse_dispatch<Geometry1, Geometry2>::type::value
- >
- struct disjoint
- : not_implemented<Geometry1, Geometry2>
- {};
- template
- <
- typename Geometry1, typename Geometry2,
- std::size_t DimensionCount,
- typename Tag1, typename Tag2
- >
- struct disjoint<Geometry1, Geometry2, DimensionCount, Tag1, Tag2, true>
- {
- template <typename Strategy>
- static inline bool apply(Geometry1 const& g1, Geometry2 const& g2, Strategy const& strategy)
- {
- return disjoint
- <
- Geometry2, Geometry1,
- DimensionCount,
- Tag2, Tag1
- >::apply(g2, g1, strategy);
- }
- };
- }
- #endif
- }}
- #endif
|