Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:35:31

0001 // Boost.Geometry Index
0002 //
0003 // R-tree leaf node checking visitor implementation
0004 //
0005 // Copyright (c) 2011-2015 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_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         // result = false;
0036     }
0037 
0038     inline void operator()(leaf const&)
0039     {
0040         result = true;
0041     }
0042 
0043     bool result;
0044 };
0045 
0046 }}} // namespace detail::rtree::visitors
0047 
0048 }}} // namespace boost::geometry::index
0049 
0050 #endif // BOOST_GEOMETRY_INDEX_DETAIL_RTREE_VISITORS_IS_LEAF_HPP