reverse.hpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
  3. // Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
  4. // Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
  5. // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
  6. // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
  7. // Use, modification and distribution is subject to the Boost Software License,
  8. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  9. // http://www.boost.org/LICENSE_1_0.txt)
  10. #ifndef BOOST_GEOMETRY_MULTI_ALGORITHMS_REVERSE_HPP
  11. #define BOOST_GEOMETRY_MULTI_ALGORITHMS_REVERSE_HPP
  12. #include <boost/range/metafunctions.hpp>
  13. #include <boost/geometry/algorithms/reverse.hpp>
  14. #include <boost/geometry/multi/algorithms/detail/modify.hpp>
  15. #include <boost/geometry/multi/core/tags.hpp>
  16. #include <boost/geometry/multi/geometries/concepts/check.hpp>
  17. namespace boost { namespace geometry
  18. {
  19. #ifndef DOXYGEN_NO_DISPATCH
  20. namespace dispatch
  21. {
  22. template <typename Geometry>
  23. struct reverse<Geometry, multi_linestring_tag>
  24. : detail::multi_modify
  25. <
  26. Geometry,
  27. detail::reverse::range_reverse
  28. >
  29. {};
  30. template <typename Geometry>
  31. struct reverse<Geometry, multi_polygon_tag>
  32. : detail::multi_modify
  33. <
  34. Geometry,
  35. detail::reverse::polygon_reverse
  36. >
  37. {};
  38. } // namespace dispatch
  39. #endif // DOXYGEN_NO_DISPATCH
  40. }} // namespace boost::geometry
  41. #endif // BOOST_GEOMETRY_MULTI_ALGORITHMS_REVERSE_HPP