1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
4 // Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
5 // Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
6 // Copyright (c) 2013-2015 Adam Wulkiewicz, Lodz, Poland.
8 // This file was modified by Oracle on 2013, 2014, 2015.
9 // Modifications copyright (c) 2013-2015, Oracle and/or its affiliates.
11 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
12 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
14 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
15 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
17 // Use, modification and distribution is subject to the Boost Software License,
18 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
19 // http://www.boost.org/LICENSE_1_0.txt)
21 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_DISJOINT_POINT_GEOMETRY_HPP
22 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_DISJOINT_POINT_GEOMETRY_HPP
24 #include <boost/geometry/algorithms/covered_by.hpp>
26 #include <boost/geometry/algorithms/detail/disjoint/linear_linear.hpp>
28 #include <boost/geometry/algorithms/dispatch/disjoint.hpp>
31 namespace boost { namespace geometry
35 #ifndef DOXYGEN_NO_DETAIL
36 namespace detail { namespace disjoint
40 struct reverse_covered_by
42 template <typename Geometry1, typename Geometry2, typename Strategy>
43 static inline bool apply(Geometry1 const& geometry1,
44 Geometry2 const& geometry2,
45 Strategy const& strategy)
47 return ! geometry::covered_by(geometry1, geometry2, strategy);
52 }} // namespace detail::disjoint
53 #endif // DOXYGEN_NO_DETAIL
58 #ifndef DOXYGEN_NO_DISPATCH
63 template<typename Point, typename Linear, std::size_t DimensionCount>
64 struct disjoint<Point, Linear, DimensionCount, point_tag, linear_tag, false>
65 : detail::disjoint::reverse_covered_by
69 template <typename Point, typename Areal, std::size_t DimensionCount>
70 struct disjoint<Point, Areal, DimensionCount, point_tag, areal_tag, false>
71 : detail::disjoint::reverse_covered_by
75 template<typename Point, typename Segment, std::size_t DimensionCount>
76 struct disjoint<Point, Segment, DimensionCount, point_tag, segment_tag, false>
77 : detail::disjoint::reverse_covered_by
81 } // namespace dispatch
82 #endif // DOXYGEN_NO_DISPATCH
85 }} // namespace boost::geometry
89 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_DISJOINT_POINT_GEOMETRY_HPP