1 // Boost.Geometry Index
3 // Copyright (c) 2011-2015 Adam Wulkiewicz, Lodz, Poland.
5 // Use, modification and distribution is subject to the Boost Software License,
6 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 #ifndef BOOST_GEOMETRY_INDEX_DETAIL_IS_INDEXABLE_HPP
10 #define BOOST_GEOMETRY_INDEX_DETAIL_IS_INDEXABLE_HPP
12 #include <boost/geometry/core/tag.hpp>
13 #include <boost/geometry/core/tags.hpp>
15 namespace boost { namespace geometry { namespace index { namespace detail {
20 typename Tag = typename geometry::tag<Geometry>::type
24 static const bool value = false;
27 template <typename Point>
28 struct is_indexable<Point, geometry::point_tag>
30 static const bool value = true;
33 template <typename Box>
34 struct is_indexable<Box, geometry::box_tag>
36 static const bool value = true;
39 template <typename Segment>
40 struct is_indexable<Segment, geometry::segment_tag>
42 static const bool value = true;
45 }}}} // namespave boost::geometry::index::detail
47 #endif // BOOST_GEOMETRY_INDEX_DETAIL_IS_INDEXABLE_HPP