linestring.hpp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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_LINESTRING_HPP
  11. #define BOOST_GEOMETRY_GEOMETRIES_REGISTER_LINESTRING_HPP
  12. #include <boost/geometry/core/tag.hpp>
  13. #include <boost/geometry/core/tags.hpp>
  14. /*!
  15. \brief \brief_macro{linestring}
  16. \ingroup register
  17. \details \details_macro{BOOST_GEOMETRY_REGISTER_LINESTRING, linestring} The
  18. linestring may contain template parameters, which must be specified then.
  19. \param Linestring \param_macro_type{linestring}
  20. \qbk{
  21. [heading Example]
  22. [register_linestring]
  23. [register_linestring_output]
  24. }
  25. */
  26. #define BOOST_GEOMETRY_REGISTER_LINESTRING(Linestring) \
  27. namespace boost { namespace geometry { namespace traits { \
  28. template<> struct tag<Linestring> { typedef linestring_tag type; }; \
  29. }}}
  30. /*!
  31. \brief \brief_macro{templated linestring}
  32. \ingroup register
  33. \details \details_macro{BOOST_GEOMETRY_REGISTER_LINESTRING_TEMPLATED, templated linestring}
  34. \details_macro_templated{linestring, point}
  35. \param Linestring \param_macro_type{linestring (without template parameters)}
  36. \qbk{
  37. [heading Example]
  38. [register_linestring_templated]
  39. [register_linestring_templated_output]
  40. }
  41. */
  42. #define BOOST_GEOMETRY_REGISTER_LINESTRING_TEMPLATED(Linestring) \
  43. namespace boost { namespace geometry { namespace traits { \
  44. template<typename P> struct tag< Linestring<P> > { typedef linestring_tag type; }; \
  45. }}}
  46. #endif // BOOST_GEOMETRY_GEOMETRIES_REGISTER_LINESTRING_HPP