File indexing completed on 2025-01-18 09:35:31
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef BOOST_GEOMETRY_INDEX_DETAIL_RTREE_VISITORS_IS_LEAF_HPP
0016 #define BOOST_GEOMETRY_INDEX_DETAIL_RTREE_VISITORS_IS_LEAF_HPP
0017
0018 namespace boost { namespace geometry { namespace index {
0019
0020 namespace detail { namespace rtree { namespace visitors {
0021
0022 template <typename MembersHolder>
0023 struct is_leaf
0024 : public MembersHolder::visitor_const
0025 {
0026 typedef typename MembersHolder::internal_node internal_node;
0027 typedef typename MembersHolder::leaf leaf;
0028
0029 is_leaf()
0030 : result(false)
0031 {}
0032
0033 inline void operator()(internal_node const&)
0034 {
0035
0036 }
0037
0038 inline void operator()(leaf const&)
0039 {
0040 result = true;
0041 }
0042
0043 bool result;
0044 };
0045
0046 }}}
0047
0048 }}}
0049
0050 #endif