]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/geometry/algorithms/detail/envelope/point.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / geometry / algorithms / detail / envelope / point.hpp
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2
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
7 // This file was modified by Oracle on 2015, 2016, 2017, 2018.
8 // Modifications copyright (c) 2015-2018, Oracle and/or its affiliates.
9
10 // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
11 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
12 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
13
14 // Distributed under the Boost Software License, Version 1.0.
15 // (See accompanying file LICENSE_1_0.txt or copy at
16 // http://www.boost.org/LICENSE_1_0.txt)
17
18 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_POINT_HPP
19 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_POINT_HPP
20
21 #include <boost/geometry/core/tags.hpp>
22
23 #include <boost/geometry/algorithms/dispatch/envelope.hpp>
24
25 // For backward compatibility
26 #include <boost/geometry/strategies/cartesian/envelope_point.hpp>
27 #include <boost/geometry/strategies/spherical/envelope_point.hpp>
28
29
30 namespace boost { namespace geometry
31 {
32
33 #ifndef DOXYGEN_NO_DETAIL
34 namespace detail { namespace envelope
35 {
36
37
38 struct envelope_point
39 {
40 template <typename Point, typename Box, typename Strategy>
41 static inline void apply(Point const& point, Box& mbr, Strategy const& )
42 {
43 Strategy::apply(point, mbr);
44 }
45 };
46
47
48 }} // namespace detail::envelope
49 #endif // DOXYGEN_NO_DETAIL
50
51 #ifndef DOXYGEN_NO_DISPATCH
52 namespace dispatch
53 {
54
55
56 template <typename Point>
57 struct envelope<Point, point_tag>
58 : detail::envelope::envelope_point
59 {};
60
61
62 } // namespace dispatch
63 #endif // DOXYGEN_NO_DISPATCH
64
65 }} // namespace boost::geometry
66
67 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_POINT_HPP