Boost.Geometry.Index
 All Classes Functions Typedefs Groups
distance_predicates.hpp
1 // Boost.Geometry Index
2 //
3 // Spatial index distance predicates, calculators and checkers used in nearest neighbor query
4 //
5 // Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
6 //
7 // Use, modification and distribution is subject to the Boost Software License,
8 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
10 
11 #ifndef BOOST_GEOMETRY_INDEX_DISTANCE_PREDICATES_HPP
12 #define BOOST_GEOMETRY_INDEX_DISTANCE_PREDICATES_HPP
13 
14 #include <boost/geometry/index/detail/distance_predicates.hpp>
15 
20 namespace boost { namespace geometry { namespace index {
21 
22 // relations generators
23 
24 #ifdef BOOST_GEOMETRY_INDEX_DETAIL_EXPERIMENTAL
25 
43 template <typename T>
44 detail::to_nearest<T> to_nearest(T const& v)
45 {
46  return detail::to_nearest<T>(v);
47 }
48 
65 template <typename T>
66 detail::to_centroid<T> to_centroid(T const& v)
67 {
68  return detail::to_centroid<T>(v);
69 }
70 
88 template <typename T>
89 detail::to_furthest<T> to_furthest(T const& v)
90 {
91  return detail::to_furthest<T>(v);
92 }
93 
94 #endif // BOOST_GEOMETRY_INDEX_DETAIL_EXPERIMENTAL
95 
96 // distance predicates generators
97 
113 //template <typename PointRelation>
114 //inline detail::unbounded<PointRelation>
115 //unbounded(PointRelation const& pr)
116 //{
117 // return detail::unbounded<PointRelation>(pr);
118 //}
119 
139 //template <typename PointRelation, typename MinRelation>
140 //inline detail::min_bounded<PointRelation, MinRelation>
141 //min_bounded(PointRelation const& pr, MinRelation const& minr)
142 //{
143 // return detail::min_bounded<PointRelation, MinRelation>(pr, minr);
144 //}
145 
165 //template <typename PointRelation, typename MaxRelation>
166 //inline detail::max_bounded<PointRelation, MaxRelation>
167 //max_bounded(PointRelation const& pr, MaxRelation const& maxr)
168 //{
169 // return detail::max_bounded<PointRelation, MaxRelation>(pr, maxr);
170 //}
171 
195 //template <typename PointRelation, typename MinRelation, typename MaxRelation>
196 //inline detail::bounded<PointRelation, MinRelation, MaxRelation>
197 //bounded(PointRelation const& pr, MinRelation const& minr, MaxRelation const& maxr)
198 //{
199 // return detail::bounded<PointRelation, MinRelation, MaxRelation>(pr, minr, maxr);
200 //}
201 
202 }}} // namespace boost::geometry::index
203 
204 #endif // BOOST_GEOMETRY_INDEX_DISTANCE_PREDICATES_HPP