Chris@16: // Boost.Geometry Index Chris@16: // Chris@16: // Rtree utilities view Chris@16: // Chris@16: // Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland. Chris@16: // Chris@16: // Use, modification and distribution is subject to the Boost Software License, Chris@16: // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: #ifndef BOOST_GEOMETRY_INDEX_DETAIL_RTREE_UTILITIES_VIEW_HPP Chris@16: #define BOOST_GEOMETRY_INDEX_DETAIL_RTREE_UTILITIES_VIEW_HPP Chris@16: Chris@16: namespace boost { namespace geometry { namespace index { Chris@16: Chris@16: namespace detail { namespace rtree { namespace utilities { Chris@16: Chris@16: template Chris@16: class view Chris@16: { Chris@16: public: Chris@16: typedef typename Rtree::size_type size_type; Chris@16: Chris@16: typedef typename Rtree::translator_type translator_type; Chris@16: typedef typename Rtree::value_type value_type; Chris@16: typedef typename Rtree::options_type options_type; Chris@16: typedef typename Rtree::box_type box_type; Chris@16: typedef typename Rtree::allocators_type allocators_type; Chris@16: Chris@16: view(Rtree const& rt) : m_rtree(rt) {} Chris@16: Chris@16: template Chris@16: void apply_visitor(Visitor & vis) const Chris@16: { Chris@16: m_rtree.apply_visitor(vis); Chris@16: } Chris@16: Chris@16: // This will most certainly be removed in the future Chris@16: translator_type translator() const Chris@16: { Chris@16: return m_rtree.translator(); Chris@16: } Chris@16: Chris@16: // This will probably be removed in the future Chris@16: size_type depth() const Chris@16: { Chris@16: return m_rtree.depth(); Chris@16: } Chris@16: Chris@16: private: Chris@16: view(view const&); Chris@16: view & operator=(view const&); Chris@16: Chris@16: Rtree const& m_rtree; Chris@16: }; Chris@16: Chris@16: }}} // namespace detail::rtree::utilities Chris@16: Chris@16: }}} // namespace boost::geometry::index Chris@16: Chris@16: #endif // BOOST_GEOMETRY_INDEX_DETAIL_RTREE_UTILITIES_VIEW_HPP