123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- #ifndef BOOST_GEOMETRY_GEOMETRIES_LINESTRING_HPP
- #define BOOST_GEOMETRY_GEOMETRIES_LINESTRING_HPP
- #include <memory>
- #include <vector>
- #include <boost/concept/assert.hpp>
- #include <boost/config.hpp>
- #include <boost/geometry/core/tag.hpp>
- #include <boost/geometry/core/tags.hpp>
- #include <boost/geometry/geometries/concepts/point_concept.hpp>
- #include <initializer_list>
- namespace boost { namespace geometry
- {
- namespace model
- {
- template
- <
- typename Point,
- template<typename,typename> class Container = std::vector,
- template<typename> class Allocator = std::allocator
- >
- class linestring : public Container<Point, Allocator<Point> >
- {
- BOOST_CONCEPT_ASSERT( (concepts::Point<Point>) );
- typedef Container<Point, Allocator<Point> > base_type;
- public :
-
- inline linestring()
- : base_type()
- {}
-
- template <typename Iterator>
- inline linestring(Iterator begin, Iterator end)
- : base_type(begin, end)
- {}
-
- inline linestring(std::initializer_list<Point> l)
- : base_type(l.begin(), l.end())
- {}
- };
- }
- #ifndef DOXYGEN_NO_TRAITS_SPECIALIZATIONS
- namespace traits
- {
- template
- <
- typename Point,
- template<typename,typename> class Container,
- template<typename> class Allocator
- >
- struct tag<model::linestring<Point, Container, Allocator> >
- {
- typedef linestring_tag type;
- };
- }
- #endif
- }}
- #endif
|