annotate DEPENDENCIES/generic/include/boost/geometry/policies/disjoint_interrupt_policy.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents f46d142149f5
children
rev   line source
Chris@102 1 // Boost.Geometry (aka GGL, Generic Geometry Library)
Chris@102 2
Chris@102 3 // Copyright (c) 2007-2014 Barend Gehrels, Amsterdam, the Netherlands.
Chris@102 4 // Copyright (c) 2008-2014 Bruno Lalande, Paris, France.
Chris@102 5 // Copyright (c) 2009-2014 Mateusz Loskot, London, UK.
Chris@102 6 // Copyright (c) 2013-2014 Adam Wulkiewicz, Lodz, Poland.
Chris@102 7
Chris@102 8 // This file was modified by Oracle on 2013-2014.
Chris@102 9 // Modifications copyright (c) 2013-2014, Oracle and/or its affiliates.
Chris@102 10
Chris@102 11 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
Chris@102 12 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
Chris@102 13
Chris@102 14 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
Chris@102 15 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
Chris@102 16
Chris@102 17 // Use, modification and distribution is subject to the Boost Software License,
Chris@102 18 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Chris@102 19 // http://www.boost.org/LICENSE_1_0.txt)
Chris@102 20
Chris@102 21 #ifndef BOOST_GEOMETRY_ALGORITHMS_POLICIES_DISJOINT_INTERRUPT_POLICY_HPP
Chris@102 22 #define BOOST_GEOMETRY_ALGORITHMS_POLICIES_DISJOINT_INTERRUPT_POLICY_HPP
Chris@102 23
Chris@102 24 #include <boost/range.hpp>
Chris@102 25
Chris@102 26
Chris@102 27 namespace boost { namespace geometry
Chris@102 28 {
Chris@102 29
Chris@102 30
Chris@102 31 #ifndef DOXYGEN_NO_DETAIL
Chris@102 32 namespace detail { namespace disjoint
Chris@102 33 {
Chris@102 34
Chris@102 35
Chris@102 36 struct disjoint_interrupt_policy
Chris@102 37 {
Chris@102 38 static bool const enabled = true;
Chris@102 39 bool has_intersections;
Chris@102 40
Chris@102 41 inline disjoint_interrupt_policy()
Chris@102 42 : has_intersections(false)
Chris@102 43 {}
Chris@102 44
Chris@102 45 template <typename Range>
Chris@102 46 inline bool apply(Range const& range)
Chris@102 47 {
Chris@102 48 // If there is any IP in the range, it is NOT disjoint
Chris@102 49 if (boost::size(range) > 0)
Chris@102 50 {
Chris@102 51 has_intersections = true;
Chris@102 52 return true;
Chris@102 53 }
Chris@102 54 return false;
Chris@102 55 }
Chris@102 56 };
Chris@102 57
Chris@102 58
Chris@102 59
Chris@102 60 }} // namespace detail::disjoint
Chris@102 61 #endif // DOXYGEN_NO_DETAIL
Chris@102 62
Chris@102 63
Chris@102 64 }} // namespace boost::geometry
Chris@102 65
Chris@102 66
Chris@102 67 #endif // BOOST_GEOMETRY_ALGORITHMS_POLICIES_DISJOINT_INTERRUPT_POLICY_HPP