multi_point.hpp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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_GEOMETRIES_REGISTER_MULTI_POINT_HPP
  11. #define BOOST_GEOMETRY_GEOMETRIES_REGISTER_MULTI_POINT_HPP
  12. #include <boost/geometry/core/tag.hpp>
  13. #include <boost/geometry/core/tags.hpp>
  14. /*!
  15. \brief \brief_macro{multi_point}
  16. \ingroup register
  17. \details \details_macro{BOOST_GEOMETRY_REGISTER_MULTI_POINT, multi_point} The
  18. multi_point may contain template parameters, which must be specified then.
  19. \param MultiPoint \param_macro_type{multi_point}
  20. \qbk{
  21. [heading Example]
  22. [register_multi_point]
  23. [register_multi_point_output]
  24. }
  25. */
  26. #define BOOST_GEOMETRY_REGISTER_MULTI_POINT(MultiPoint) \
  27. namespace boost { namespace geometry { namespace traits { \
  28. template<> struct tag<MultiPoint> { typedef multi_point_tag type; }; \
  29. }}}
  30. /*!
  31. \brief \brief_macro{templated multi_point}
  32. \ingroup register
  33. \details \details_macro{BOOST_GEOMETRY_REGISTER_MULTI_POINT_TEMPLATED, templated multi_point}
  34. \details_macro_templated{multi_point, point}
  35. \param MultiPoint \param_macro_type{multi_point (without template parameters)}
  36. \qbk{
  37. [heading Example]
  38. [register_multi_point_templated]
  39. [register_multi_point_templated_output]
  40. }
  41. */
  42. #define BOOST_GEOMETRY_REGISTER_MULTI_POINT_TEMPLATED(MultiPoint) \
  43. namespace boost { namespace geometry { namespace traits { \
  44. template<typename Point> struct tag< MultiPoint<Point> > { typedef multi_point_tag type; }; \
  45. }}}
  46. #endif // BOOST_GEOMETRY_GEOMETRIES_REGISTER_MULTI_POINT_HPP