File indexing completed on 2025-12-15 09:50:37
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef BOOST_GEOMETRY_INDEX_DETAIL_RTREE_UTILITIES_VIEW_HPP
0016 #define BOOST_GEOMETRY_INDEX_DETAIL_RTREE_UTILITIES_VIEW_HPP
0017
0018 namespace boost { namespace geometry { namespace index {
0019
0020 namespace detail { namespace rtree { namespace utilities {
0021
0022 template <typename Rtree>
0023 class view
0024 {
0025 public:
0026 typedef typename Rtree::members_holder members_holder;
0027
0028 typedef typename Rtree::size_type size_type;
0029
0030 typedef typename Rtree::translator_type translator_type;
0031 typedef typename Rtree::value_type value_type;
0032 typedef typename Rtree::options_type options_type;
0033 typedef typename Rtree::box_type box_type;
0034 typedef typename Rtree::allocators_type allocators_type;
0035
0036 view(Rtree const& rt) : m_rtree(rt) {}
0037
0038 template <typename Visitor>
0039 void apply_visitor(Visitor & vis) const
0040 {
0041 m_rtree.apply_visitor(vis);
0042 }
0043
0044
0045 translator_type translator() const
0046 {
0047 return m_rtree.translator();
0048 }
0049
0050
0051 size_type depth() const
0052 {
0053 return m_rtree.depth();
0054 }
0055
0056 private:
0057 view(view const&);
0058 view & operator=(view const&);
0059
0060 Rtree const& m_rtree;
0061 };
0062
0063 }}}
0064
0065 }}}
0066
0067 #endif