GEOS  3.9.0dev
Public Member Functions | Static Public Member Functions | List of all members
geos::index::chain::MonotoneChainBuilder Class Reference

Constructs MonotoneChains for sequences of Coordinates. More...

#include <MonotoneChainBuilder.h>

Public Member Functions

 MonotoneChainBuilder (const MonotoneChainBuilder &)=delete
 
MonotoneChainBuilderoperator= (const MonotoneChainBuilder &)=delete
 

Static Public Member Functions

static std::unique_ptr
< std::vector< std::unique_ptr
< MonotoneChain > > > 
getChains (const geom::CoordinateSequence *pts, void *context)
 Return a newly-allocated vector of newly-allocated MonotoneChain objects for the given CoordinateSequence.
 
static void getChains (const geom::CoordinateSequence *pts, void *context, std::vector< std::unique_ptr< MonotoneChain >> &mcList)
 Computes a list of the MonotoneChains for a list of coordinates, attaching a context data object to each. More...
 
static std::unique_ptr
< std::vector< std::unique_ptr
< MonotoneChain > > > 
getChains (const geom::CoordinateSequence *pts)
 

Detailed Description

Constructs MonotoneChains for sequences of Coordinates.

TODO: use vector<const Coordinate*> instead ?

Constructor & Destructor Documentation

geos::index::chain::MonotoneChainBuilder::MonotoneChainBuilder ( const MonotoneChainBuilder )
delete

Disable copy construction and assignment. Apparently needed to make this class compile under MSVC. (See https://stackoverflow.com/q/29565299)

Member Function Documentation

static void geos::index::chain::MonotoneChainBuilder::getChains ( const geom::CoordinateSequence pts,
void *  context,
std::vector< std::unique_ptr< MonotoneChain >> &  mcList 
)
static

Computes a list of the MonotoneChains for a list of coordinates, attaching a context data object to each.

Parameters
ptsthe list of points to compute chains for
contexta data object to attach to each chain
[out]mcLista list of the monotone chains for the points

The documentation for this class was generated from the following file: