Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Boost.Geometry Index
0002 //
0003 // Copyright (c) 2011-2015 Adam Wulkiewicz, Lodz, Poland.
0004 //
0005 // Use, modification and distribution is subject to the Boost Software License,
0006 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0007 // http://www.boost.org/LICENSE_1_0.txt)
0008 
0009 #ifndef BOOST_GEOMETRY_INDEX_DETAIL_IS_INDEXABLE_HPP
0010 #define BOOST_GEOMETRY_INDEX_DETAIL_IS_INDEXABLE_HPP
0011 
0012 #include <boost/geometry/core/tag.hpp>
0013 #include <boost/geometry/core/tags.hpp>
0014 
0015 namespace boost { namespace geometry { namespace index { namespace detail {
0016 
0017 template
0018 <
0019     typename Geometry,
0020     typename Tag = typename geometry::tag<Geometry>::type
0021 >
0022 struct is_indexable
0023 {
0024     static const bool value = false;
0025 };
0026 
0027 template <typename Point>
0028 struct is_indexable<Point, geometry::point_tag>
0029 {
0030     static const bool value = true;
0031 };
0032 
0033 template <typename Box>
0034 struct is_indexable<Box, geometry::box_tag>
0035 {
0036     static const bool value = true;
0037 };
0038 
0039 template <typename Segment>
0040 struct is_indexable<Segment, geometry::segment_tag>
0041 {
0042     static const bool value = true;
0043 };
0044 
0045 }}}} // namespave boost::geometry::index::detail
0046 
0047 #endif // BOOST_GEOMETRY_INDEX_DETAIL_IS_INDEXABLE_HPP