Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-15 09:50:37

0001 // Boost.Geometry Index
0002 //
0003 // Rtree utilities view
0004 //
0005 // Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
0006 //
0007 // This file was modified by Oracle on 2019.
0008 // Modifications copyright (c) 2019 Oracle and/or its affiliates.
0009 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
0010 //
0011 // Use, modification and distribution is subject to the Boost Software License,
0012 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0013 // http://www.boost.org/LICENSE_1_0.txt)
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     // This will most certainly be removed in the future
0045     translator_type translator() const
0046     {
0047         return m_rtree.translator();
0048     }
0049 
0050     // This will probably be removed in the future
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 }}} // namespace detail::rtree::utilities
0064 
0065 }}} // namespace boost::geometry::index
0066 
0067 #endif // BOOST_GEOMETRY_INDEX_DETAIL_RTREE_UTILITIES_VIEW_HPP