]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/geometry/strategies/index.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / geometry / strategies / index.hpp
1 // Boost.Geometry Index
2 //
3 // R-tree strategies
4 //
5 // Copyright (c) 2019, 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
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_MPL_ASSERT_MSG
35 (
36 false, NOT_IMPLEMENTED_FOR_THESE_TYPES
37 , (types<Geometry>)
38 );*/
39
40 typedef geometry::default_strategy type;
41 };
42
43
44 // TEMP
45 // Utility to get index strategy from other strategy
46 // In the final version this utility will probably replaced with some other mechanism
47 // The issue is cross-dependencies between strategies
48 template <typename Strategy>
49 struct from_strategy
50 {
51 /*BOOST_MPL_ASSERT_MSG
52 (
53 false, NOT_IMPLEMENTED_FOR_THESE_TYPES
54 , (types<Strategy>)
55 );*/
56
57 typedef geometry::default_strategy type;
58
59 static inline type get(Strategy const&)
60 {
61 return type();
62 }
63 };
64
65
66 } // namespace services
67
68
69 }}}} // namespace boost::geometry::strategy::index
70
71 #endif // BOOST_GEOMETRY_STRATEGIES_INDEX_HPP