12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_IS_SIMPLE_ALWAYS_SIMPLE_HPP
- #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_IS_SIMPLE_ALWAYS_SIMPLE_HPP
- #include <boost/geometry/core/tags.hpp>
- #include <boost/geometry/algorithms/dispatch/is_simple.hpp>
- namespace boost { namespace geometry
- {
- #ifndef DOXYGEN_NO_DETAIL
- namespace detail { namespace is_simple
- {
- template <typename Geometry>
- struct always_simple
- {
- template <typename Strategy>
- static inline bool apply(Geometry const&, Strategy const&)
- {
- return true;
- }
- };
- }}
- #endif
- #ifndef DOXYGEN_NO_DISPATCH
- namespace dispatch
- {
- template <typename Point>
- struct is_simple<Point, point_tag>
- : detail::is_simple::always_simple<Point>
- {};
- template <typename Segment>
- struct is_simple<Segment, segment_tag>
- : detail::is_simple::always_simple<Segment>
- {};
- template <typename Box>
- struct is_simple<Box, box_tag>
- : detail::is_simple::always_simple<Box>
- {};
- }
- #endif
- }}
- #endif
|