Chris@16
|
1 // Boost.Geometry Index
|
Chris@16
|
2 //
|
Chris@16
|
3 // R-tree node concept
|
Chris@16
|
4 //
|
Chris@16
|
5 // Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
|
Chris@16
|
6 //
|
Chris@16
|
7 // Use, modification and distribution is subject to the Boost Software License,
|
Chris@16
|
8 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
9 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
10
|
Chris@16
|
11 #ifndef BOOST_GEOMETRY_INDEX_DETAIL_RTREE_NODE_CONCEPT_HPP
|
Chris@16
|
12 #define BOOST_GEOMETRY_INDEX_DETAIL_RTREE_NODE_CONCEPT_HPP
|
Chris@16
|
13
|
Chris@16
|
14 namespace boost { namespace geometry { namespace index {
|
Chris@16
|
15
|
Chris@16
|
16 namespace detail { namespace rtree {
|
Chris@16
|
17
|
Chris@16
|
18 template <typename Value, typename Parameters, typename Box, typename Allocators, typename Tag>
|
Chris@16
|
19 struct node
|
Chris@16
|
20 {
|
Chris@16
|
21 BOOST_MPL_ASSERT_MSG(
|
Chris@16
|
22 (false),
|
Chris@16
|
23 NOT_IMPLEMENTED_FOR_THIS_TAG_TYPE,
|
Chris@16
|
24 (node));
|
Chris@16
|
25 };
|
Chris@16
|
26
|
Chris@16
|
27 template <typename Value, typename Parameters, typename Box, typename Allocators, typename Tag>
|
Chris@16
|
28 struct internal_node
|
Chris@16
|
29 {
|
Chris@16
|
30 BOOST_MPL_ASSERT_MSG(
|
Chris@16
|
31 (false),
|
Chris@16
|
32 NOT_IMPLEMENTED_FOR_THIS_TAG_TYPE,
|
Chris@16
|
33 (internal_node));
|
Chris@16
|
34 };
|
Chris@16
|
35
|
Chris@16
|
36 template <typename Value, typename Parameters, typename Box, typename Allocators, typename Tag>
|
Chris@16
|
37 struct leaf
|
Chris@16
|
38 {
|
Chris@16
|
39 BOOST_MPL_ASSERT_MSG(
|
Chris@16
|
40 (false),
|
Chris@16
|
41 NOT_IMPLEMENTED_FOR_THIS_TAG_TYPE,
|
Chris@16
|
42 (leaf));
|
Chris@16
|
43 };
|
Chris@16
|
44
|
Chris@16
|
45 template <typename Value, typename Parameters, typename Box, typename Allocators, typename Tag, bool IsVisitableConst>
|
Chris@16
|
46 struct visitor
|
Chris@16
|
47 {
|
Chris@16
|
48 BOOST_MPL_ASSERT_MSG(
|
Chris@16
|
49 (false),
|
Chris@16
|
50 NOT_IMPLEMENTED_FOR_THIS_TAG_TYPE,
|
Chris@16
|
51 (visitor));
|
Chris@16
|
52 };
|
Chris@16
|
53
|
Chris@16
|
54 template <typename Allocator, typename Value, typename Parameters, typename Box, typename Tag>
|
Chris@16
|
55 class allocators
|
Chris@16
|
56 {
|
Chris@16
|
57 BOOST_MPL_ASSERT_MSG(
|
Chris@16
|
58 (false),
|
Chris@16
|
59 NOT_IMPLEMENTED_FOR_THIS_TAG_TYPE,
|
Chris@16
|
60 (allocators));
|
Chris@16
|
61 };
|
Chris@16
|
62
|
Chris@16
|
63 template <typename Allocators, typename Node>
|
Chris@16
|
64 struct create_node
|
Chris@16
|
65 {
|
Chris@16
|
66 BOOST_MPL_ASSERT_MSG(
|
Chris@16
|
67 (false),
|
Chris@16
|
68 NOT_IMPLEMENTED_FOR_THIS_NODE_TYPE,
|
Chris@16
|
69 (create_node));
|
Chris@16
|
70 };
|
Chris@16
|
71
|
Chris@16
|
72 template <typename Allocators, typename Node>
|
Chris@16
|
73 struct destroy_node
|
Chris@16
|
74 {
|
Chris@16
|
75 BOOST_MPL_ASSERT_MSG(
|
Chris@16
|
76 (false),
|
Chris@16
|
77 NOT_IMPLEMENTED_FOR_THIS_NODE_TYPE,
|
Chris@16
|
78 (destroy_node));
|
Chris@16
|
79 };
|
Chris@16
|
80
|
Chris@16
|
81 }} // namespace detail::rtree
|
Chris@16
|
82
|
Chris@16
|
83 }}} // namespace boost::geometry::index
|
Chris@16
|
84
|
Chris@16
|
85 #endif // BOOST_GEOMETRY_INDEX_DETAIL_RTREE_NODE_CONCEPT_HPP
|