12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_RELATE_BOX_AREAL_HPP
- #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_RELATE_BOX_AREAL_HPP
- #include <boost/geometry/algorithms/detail/relate/areal_areal.hpp>
- #include <boost/geometry/views/box_view.hpp>
- namespace boost { namespace geometry
- {
- #ifndef DOXYGEN_NO_DETAIL
- namespace detail { namespace relate {
- template <typename Box, typename Areal>
- struct box_areal
- {
- static const bool interruption_enabled = true;
- template <typename Result, typename Strategy>
- static inline void apply(Box const& box, Areal const& areal,
- Result& result,
- Strategy const& strategy)
- {
- using is_cartesian = std::is_same
- <
- typename Strategy::cs_tag,
- cartesian_tag
- >;
- apply(box, areal, result, strategy, is_cartesian());
- }
- template <typename Result, typename Strategy>
- static inline void apply(Box const& box, Areal const& areal,
- Result& result,
- Strategy const& strategy,
- std::true_type )
- {
- using box_view = boost::geometry::box_view<Box>;
- box_view view(box);
- areal_areal<box_view, Areal>::apply(view, areal, result, strategy);
- }
- template <typename Result, typename Strategy>
- static inline void apply(Box const& , Areal const& ,
- Result& ,
- Strategy const& ,
- std::false_type )
- {
- BOOST_GEOMETRY_STATIC_ASSERT_FALSE(
- "Not implemented for this coordinate system.",
- typename Strategy::cs_tag());
- }
- };
- }}
- #endif
- }}
- #endif
|