1
// Generic Geometry Library
3
// Copyright Barend Gehrels 1995-2009, Geodan Holding B.V. Amsterdam, the Netherlands.
4
// Copyright Bruno Lalande 2008, 2009
5
// Use, modification and distribution is subject to the Boost Software License,
6
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7
// http://www.boost.org/LICENSE_1_0.txt)
9
#ifndef GGL_GEOMETRIES_LINESTRING_HPP
10
#define GGL_GEOMETRIES_LINESTRING_HPP
15
#include <boost/concept/assert.hpp>
16
#include <boost/range/functions.hpp>
22
\brief A linestring (named so by OGC) is a collection (default a vector) of points.
25
\tparam V optional container type, for example std::vector, std::list, std::deque
26
\tparam A optional container-allocator-type
27
(see http://accu.org/index.php/journals/427#ftn.d0e249 )
29
All algorithms work on ranges, based on a container with point types fulfilling
30
the point concepts. They will take linestring, but also vector, std::pair, or other containers.
35
template<typename,typename> class V = std::vector,
36
template<typename> class A = std::allocator
38
class linestring : public V<P, A<P> >
40
BOOST_CONCEPT_ASSERT( (concept::Point<P>) );
43
#ifndef DOXYGEN_NO_TRAITS_SPECIALIZATIONS
50
template<typename,typename> class V,
51
template<typename> class A
53
struct tag<linestring<P, V, A> >
55
typedef linestring_tag type;
59
#endif // DOXYGEN_NO_TRAITS_SPECIALIZATIONS
63
#endif // GGL_GEOMETRIES_LINESTRING_HPP