1 // Boost.Geometry Index
3 // Rtree utilities view
5 // Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
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)
11 #ifndef BOOST_GEOMETRY_INDEX_DETAIL_RTREE_UTILITIES_VIEW_HPP
12 #define BOOST_GEOMETRY_INDEX_DETAIL_RTREE_UTILITIES_VIEW_HPP
14 namespace boost { namespace geometry { namespace index {
16 namespace detail { namespace rtree { namespace utilities {
18 template <typename Rtree>
22 typedef typename Rtree::size_type size_type;
24 typedef typename Rtree::translator_type translator_type;
25 typedef typename Rtree::value_type value_type;
26 typedef typename Rtree::options_type options_type;
27 typedef typename Rtree::box_type box_type;
28 typedef typename Rtree::allocators_type allocators_type;
30 view(Rtree const& rt) : m_rtree(rt) {}
32 template <typename Visitor>
33 void apply_visitor(Visitor & vis) const
35 m_rtree.apply_visitor(vis);
38 // This will most certainly be removed in the future
39 translator_type translator() const
41 return m_rtree.translator();
44 // This will probably be removed in the future
45 size_type depth() const
47 return m_rtree.depth();
52 view & operator=(view const&);
57 }}} // namespace detail::rtree::utilities
59 }}} // namespace boost::geometry::index
61 #endif // BOOST_GEOMETRY_INDEX_DETAIL_RTREE_UTILITIES_VIEW_HPP