| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- // Boost.Geometry
- // Copyright (c) 2021, Oracle and/or its affiliates.
- // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
- // Licensed under the Boost Software License version 1.0.
- // http://www.boost.org/users/license.html
- #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_DUMMY_GEOMETRIES_HPP
- #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_DUMMY_GEOMETRIES_HPP
- #include <boost/geometry/core/tag.hpp>
- #include <boost/geometry/core/tags.hpp>
- namespace boost { namespace geometry
- {
- #ifndef DOXYGEN_NO_DETAIL
- namespace detail
- {
- struct dummy_point {};
- struct dummy_segment {};
- struct dummy_box {};
- struct dummy_linestring {};
- struct dummy_ring {};
- struct dummy_polygon {};
- struct dummy_multi_point {};
- struct dummy_multi_linestring {};
- struct dummy_multi_polygon {};
- } // namespace detail
- #endif // DOXYGEN_NO_DETAIL
- namespace traits
- {
- template <> struct tag<geometry::detail::dummy_point> { using type = point_tag; };
- template <> struct tag<geometry::detail::dummy_segment> { using type = segment_tag; };
- template <> struct tag<geometry::detail::dummy_box> { using type = box_tag; };
- template <> struct tag<geometry::detail::dummy_linestring> { using type = linestring_tag; };
- template <> struct tag<geometry::detail::dummy_ring> { using type = ring_tag; };
- template <> struct tag<geometry::detail::dummy_polygon> { using type = polygon_tag; };
- template <> struct tag<geometry::detail::dummy_multi_point> { using type = multi_point_tag; };
- template <> struct tag<geometry::detail::dummy_multi_linestring> { using type = multi_linestring_tag; };
- template <> struct tag<geometry::detail::dummy_multi_polygon> { using type = multi_polygon_tag; };
- } // namespace traits
- }} // namespace boost::geometry
- #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_DUMMY_GEOMETRIES_HPP
|