annotate DEPENDENCIES/generic/include/boost/geometry/index/detail/rtree/utilities/view.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // Boost.Geometry Index
Chris@16 2 //
Chris@16 3 // Rtree utilities view
Chris@16 4 //
Chris@16 5 // Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
Chris@16 6 //
Chris@16 7 // Use, modification and distribution is subject to the Boost Software License,
Chris@16 8 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 9 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 10
Chris@16 11 #ifndef BOOST_GEOMETRY_INDEX_DETAIL_RTREE_UTILITIES_VIEW_HPP
Chris@16 12 #define BOOST_GEOMETRY_INDEX_DETAIL_RTREE_UTILITIES_VIEW_HPP
Chris@16 13
Chris@16 14 namespace boost { namespace geometry { namespace index {
Chris@16 15
Chris@16 16 namespace detail { namespace rtree { namespace utilities {
Chris@16 17
Chris@16 18 template <typename Rtree>
Chris@16 19 class view
Chris@16 20 {
Chris@16 21 public:
Chris@16 22 typedef typename Rtree::size_type size_type;
Chris@16 23
Chris@16 24 typedef typename Rtree::translator_type translator_type;
Chris@16 25 typedef typename Rtree::value_type value_type;
Chris@16 26 typedef typename Rtree::options_type options_type;
Chris@16 27 typedef typename Rtree::box_type box_type;
Chris@16 28 typedef typename Rtree::allocators_type allocators_type;
Chris@16 29
Chris@16 30 view(Rtree const& rt) : m_rtree(rt) {}
Chris@16 31
Chris@16 32 template <typename Visitor>
Chris@16 33 void apply_visitor(Visitor & vis) const
Chris@16 34 {
Chris@16 35 m_rtree.apply_visitor(vis);
Chris@16 36 }
Chris@16 37
Chris@16 38 // This will most certainly be removed in the future
Chris@16 39 translator_type translator() const
Chris@16 40 {
Chris@16 41 return m_rtree.translator();
Chris@16 42 }
Chris@16 43
Chris@16 44 // This will probably be removed in the future
Chris@16 45 size_type depth() const
Chris@16 46 {
Chris@16 47 return m_rtree.depth();
Chris@16 48 }
Chris@16 49
Chris@16 50 private:
Chris@16 51 view(view const&);
Chris@16 52 view & operator=(view const&);
Chris@16 53
Chris@16 54 Rtree const& m_rtree;
Chris@16 55 };
Chris@16 56
Chris@16 57 }}} // namespace detail::rtree::utilities
Chris@16 58
Chris@16 59 }}} // namespace boost::geometry::index
Chris@16 60
Chris@16 61 #endif // BOOST_GEOMETRY_INDEX_DETAIL_RTREE_UTILITIES_VIEW_HPP