Chris@102: // Boost.Geometry (aka GGL, Generic Geometry Library) Chris@102: Chris@102: // Copyright (c) 2007-2014 Barend Gehrels, Amsterdam, the Netherlands. Chris@102: // Copyright (c) 2008-2014 Bruno Lalande, Paris, France. Chris@102: // Copyright (c) 2009-2014 Mateusz Loskot, London, UK. Chris@102: // Copyright (c) 2013-2014 Adam Wulkiewicz, Lodz, Poland. Chris@102: Chris@102: // This file was modified by Oracle on 2013-2014. Chris@102: // Modifications copyright (c) 2013-2014, Oracle and/or its affiliates. Chris@102: Chris@102: // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle Chris@102: // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle Chris@102: Chris@102: // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library Chris@102: // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands. Chris@102: Chris@102: // Use, modification and distribution is subject to the Boost Software License, Chris@102: // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@102: // http://www.boost.org/LICENSE_1_0.txt) Chris@102: Chris@102: #ifndef BOOST_GEOMETRY_ALGORITHMS_POLICIES_DISJOINT_INTERRUPT_POLICY_HPP Chris@102: #define BOOST_GEOMETRY_ALGORITHMS_POLICIES_DISJOINT_INTERRUPT_POLICY_HPP Chris@102: Chris@102: #include Chris@102: Chris@102: Chris@102: namespace boost { namespace geometry Chris@102: { Chris@102: Chris@102: Chris@102: #ifndef DOXYGEN_NO_DETAIL Chris@102: namespace detail { namespace disjoint Chris@102: { Chris@102: Chris@102: Chris@102: struct disjoint_interrupt_policy Chris@102: { Chris@102: static bool const enabled = true; Chris@102: bool has_intersections; Chris@102: Chris@102: inline disjoint_interrupt_policy() Chris@102: : has_intersections(false) Chris@102: {} Chris@102: Chris@102: template Chris@102: inline bool apply(Range const& range) Chris@102: { Chris@102: // If there is any IP in the range, it is NOT disjoint Chris@102: if (boost::size(range) > 0) Chris@102: { Chris@102: has_intersections = true; Chris@102: return true; Chris@102: } Chris@102: return false; Chris@102: } Chris@102: }; Chris@102: Chris@102: Chris@102: Chris@102: }} // namespace detail::disjoint Chris@102: #endif // DOXYGEN_NO_DETAIL Chris@102: Chris@102: Chris@102: }} // namespace boost::geometry Chris@102: Chris@102: Chris@102: #endif // BOOST_GEOMETRY_ALGORITHMS_POLICIES_DISJOINT_INTERRUPT_POLICY_HPP