1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
4 // Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
5 // Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
7 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
8 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
10 // Use, modification and distribution is subject to the Boost Software License,
11 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
12 // http://www.boost.org/LICENSE_1_0.txt)
15 #ifndef BOOST_GEOMETRY_GEOMETRIES_REGISTER_LINESTRING_HPP
16 #define BOOST_GEOMETRY_GEOMETRIES_REGISTER_LINESTRING_HPP
19 #include <boost/geometry/core/tag.hpp>
20 #include <boost/geometry/core/tags.hpp>
23 \brief \brief_macro{linestring}
25 \details \details_macro{BOOST_GEOMETRY_REGISTER_LINESTRING, linestring} The
26 linestring may contain template parameters, which must be specified then.
27 \param Linestring \param_macro_type{linestring}
32 [register_linestring_output]
35 #define BOOST_GEOMETRY_REGISTER_LINESTRING(Linestring) \
36 namespace boost { namespace geometry { namespace traits { \
37 template<> struct tag<Linestring> { typedef linestring_tag type; }; \
42 \brief \brief_macro{templated linestring}
44 \details \details_macro{BOOST_GEOMETRY_REGISTER_LINESTRING_TEMPLATED, templated linestring}
45 \details_macro_templated{linestring, point}
46 \param Linestring \param_macro_type{linestring (without template parameters)}
50 [register_linestring_templated]
51 [register_linestring_templated_output]
54 #define BOOST_GEOMETRY_REGISTER_LINESTRING_TEMPLATED(Linestring) \
55 namespace boost { namespace geometry { namespace traits { \
56 template<typename P> struct tag< Linestring<P> > { typedef linestring_tag type; }; \
60 #endif // BOOST_GEOMETRY_GEOMETRIES_REGISTER_LINESTRING_HPP