File indexing completed on 2025-01-18 09:35:06
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_IS_SIMPLE_ALWAYS_SIMPLE_HPP
0012 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_IS_SIMPLE_ALWAYS_SIMPLE_HPP
0013
0014 #include <boost/geometry/core/tags.hpp>
0015
0016 #include <boost/geometry/algorithms/dispatch/is_simple.hpp>
0017
0018
0019 namespace boost { namespace geometry
0020 {
0021
0022
0023 #ifndef DOXYGEN_NO_DETAIL
0024 namespace detail { namespace is_simple
0025 {
0026
0027
0028 template <typename Geometry>
0029 struct always_simple
0030 {
0031 template <typename Strategy>
0032 static inline bool apply(Geometry const&, Strategy const&)
0033 {
0034 return true;
0035 }
0036 };
0037
0038
0039 }}
0040 #endif
0041
0042
0043
0044
0045 #ifndef DOXYGEN_NO_DISPATCH
0046 namespace dispatch
0047 {
0048
0049
0050
0051 template <typename Point>
0052 struct is_simple<Point, point_tag>
0053 : detail::is_simple::always_simple<Point>
0054 {};
0055
0056
0057
0058
0059
0060
0061
0062
0063 template <typename Segment>
0064 struct is_simple<Segment, segment_tag>
0065 : detail::is_simple::always_simple<Segment>
0066 {};
0067
0068
0069
0070
0071
0072
0073 template <typename Box>
0074 struct is_simple<Box, box_tag>
0075 : detail::is_simple::always_simple<Box>
0076 {};
0077
0078
0079 }
0080 #endif
0081
0082
0083 }}
0084
0085 #endif