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)
14 #ifndef BOOST_GEOMETRY_GEOMETRIES_MULTI_POINT_HPP
15 #define BOOST_GEOMETRY_GEOMETRIES_MULTI_POINT_HPP
20 #include <boost/concept/requires.hpp>
22 #include <boost/geometry/core/tags.hpp>
23 #include <boost/geometry/geometries/concepts/point_concept.hpp>
26 namespace boost { namespace geometry
34 \brief multi_point, a collection of points
36 \tparam Point \tparam_point
37 \tparam Container \tparam_container
38 \tparam Allocator \tparam_allocator
39 \details Multipoint can be used to group points belonging to each other,
40 e.g. a constellation, or the result set of an intersection
43 [link geometry.reference.concepts.concept_multi_point MultiPoint Concept]
49 template<typename, typename> class Container = std::vector,
50 template<typename> class Allocator = std::allocator
52 class multi_point : public Container<Point, Allocator<Point> >
54 BOOST_CONCEPT_ASSERT( (concept::Point<Point>) );
56 typedef Container<Point, Allocator<Point> > base_type;
59 /// \constructor_default{multi_point}
64 /// \constructor_begin_end{multi_point}
65 template <typename Iterator>
66 inline multi_point(Iterator begin, Iterator end)
67 : base_type(begin, end)
74 #ifndef DOXYGEN_NO_TRAITS_SPECIALIZATIONS
81 template<typename, typename> class Container,
82 template<typename> class Allocator
84 struct tag< model::multi_point<Point, Container, Allocator> >
86 typedef multi_point_tag type;
90 #endif // DOXYGEN_NO_TRAITS_SPECIALIZATIONS
92 }} // namespace boost::geometry
94 #endif // BOOST_GEOMETRY_GEOMETRIES_MULTI_POINT_HPP