123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #ifndef BOOST_GEOMETRY_ALGORITHMS_POLICIES_DISJOINT_INTERRUPT_POLICY_HPP
- #define BOOST_GEOMETRY_ALGORITHMS_POLICIES_DISJOINT_INTERRUPT_POLICY_HPP
- #include <boost/range/size.hpp>
- namespace boost { namespace geometry
- {
- #ifndef DOXYGEN_NO_DETAIL
- namespace detail { namespace disjoint
- {
- struct disjoint_interrupt_policy
- {
- static bool const enabled = true;
- bool has_intersections;
- inline disjoint_interrupt_policy()
- : has_intersections(false)
- {}
- template <typename Range>
- inline bool apply(Range const& range)
- {
-
- if (boost::size(range) > 0)
- {
- has_intersections = true;
- return true;
- }
- return false;
- }
- };
- }}
- #endif
- }}
- #endif
|