Boost.Geometry    Boost C++ Libraries
Public Member Functions | List of all members
boost::geometry::model::linestring< Point, Container, Allocator > Class Template Reference

A linestring (named so by OGC) is a collection (default a vector) of points. More...

Inheritance diagram for boost::geometry::model::linestring< Point, Container, Allocator >:

Public Member Functions

 linestring ()
 Default constructor, creating an empty linestring. More...
 
template<typename Iterator >
 linestring (Iterator begin, Iterator end)
 Constructor with begin and end, filling the linestring. More...
 
 linestring (std::initializer_list< Point > l)
 Constructor taking std::initializer_list, filling the linestring. More...
 

Detailed Description

template<typename Point, template< typename, typename > class Container = std::vector, template< typename > class Allocator = std::allocator>
class boost::geometry::model::linestring< Point, Container, Allocator >

A linestring (named so by OGC) is a collection (default a vector) of points.

Template Parameters
PointAny type fulfilling a Point Concept
Containercontainer type, for example std::vector, std::deque
Allocatorcontainer-allocator-type
Examples:
02_linestring_example.cpp, 07_a_graph_route_example.cpp, 07_b_graph_route_example.cpp, and c05_custom_point_pointer_example.cpp.

Constructor & Destructor Documentation

template<typename Point , template< typename, typename > class Container = std::vector, template< typename > class Allocator = std::allocator>
boost::geometry::model::linestring< Point, Container, Allocator >::linestring ( )

Default constructor, creating an empty linestring.

template<typename Point , template< typename, typename > class Container = std::vector, template< typename > class Allocator = std::allocator>
template<typename Iterator >
boost::geometry::model::linestring< Point, Container, Allocator >::linestring ( Iterator  begin,
Iterator  end 
)

Constructor with begin and end, filling the linestring.

template<typename Point , template< typename, typename > class Container = std::vector, template< typename > class Allocator = std::allocator>
boost::geometry::model::linestring< Point, Container, Allocator >::linestring ( std::initializer_list< Point >  l)

Constructor taking std::initializer_list, filling the linestring.


April 2, 2011

Copyright © 2007-2011 Barend Gehrels, Amsterdam, the Netherlands
Copyright © 2008-2011 Bruno Lalande, Paris, France
Copyright © 2009-2010 Mateusz Loskot, London, UK
Documentation is generated by Doxygen