Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

model::linestring

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

Model of

Linestring Concept

Synopsis

template<typename Point, template< typename, typename > class Container, template< typename > class Allocator>
class model::linestring
{
  // ...
};

Template parameter(s)

Parameter

Default

Description

typename Point

Any type fulfilling a Point Concept

template< typename, typename > class Container

std::vector

container type, for example std::vector, std::deque

template< typename > class Allocator

std::allocator

container-allocator-type

Constructor(s)

Function

Description

Parameters

linestring()

Default constructor, creating an empty linestring.

template<typename Iterator>
linestring(Iterator begin, Iterator end)

Constructor with begin and end, filling the linestring.

Iterator: begin:

Iterator: end:

Header

Either

#include <boost/geometry/geometries/geometries.hpp>

Or

#include <boost/geometry/geometries/linestring.hpp>


PrevUpHomeNext