]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/geometry/strategies/index.hpp
buildsys: change download over to reef release
[ceph.git] / ceph / src / boost / boost / geometry / strategies / index.hpp
1 // Boost.Geometry Index
2 //
3 // R-tree strategies
4 //
5 // Copyright (c) 2019-2020, Oracle and/or its affiliates.
6 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
7 //
8 // Use, modification and distribution is subject to the Boost Software License,
9 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
10 // http://www.boost.org/LICENSE_1_0.txt)
11
12 #ifndef BOOST_GEOMETRY_STRATEGIES_INDEX_HPP
13 #define BOOST_GEOMETRY_STRATEGIES_INDEX_HPP
14
15
16 #include <boost/geometry/core/cs.hpp>
17 #include <boost/geometry/core/static_assert.hpp>
18 #include <boost/geometry/strategies/default_strategy.hpp>
19
20
21 namespace boost { namespace geometry { namespace strategy { namespace index
22 {
23
24 namespace services
25 {
26
27 template
28 <
29 typename Geometry,
30 typename CSTag = typename geometry::cs_tag<Geometry>::type
31 >
32 struct default_strategy
33 {
34 /*BOOST_GEOMETRY_STATIC_ASSERT_FALSE(
35 "Not implemented for this type.",
36 Geometry);*/
37
38 typedef geometry::default_strategy type;
39 };
40
41
42 // TEMP
43 // Utility to get index strategy from other strategy
44 // In the final version this utility will probably replaced with some other mechanism
45 // The issue is cross-dependencies between strategies
46 template <typename Strategy>
47 struct from_strategy
48 {
49 /*BOOST_GEOMETRY_STATIC_ASSERT_FALSE(
50 "Not implemented for this type.",
51 Strategy);*/
52
53 typedef geometry::default_strategy type;
54
55 static inline type get(Strategy const&)
56 {
57 return type();
58 }
59 };
60
61
62 } // namespace services
63
64
65 }}}} // namespace boost::geometry::strategy::index
66
67 #endif // BOOST_GEOMETRY_STRATEGIES_INDEX_HPP