GEOS 3.11.1
Public Member Functions | Static Public Member Functions | List of all members
geos::geom::CoordinateArraySequenceFactory Class Reference

Creates CoordinateSequences internally represented as an array of Coordinates. More...

#include <geos.h>

Inheritance diagram for geos::geom::CoordinateArraySequenceFactory:
geos::geom::CoordinateSequenceFactory

Public Member Functions

std::unique_ptr< CoordinateSequence > create () const override
 Returns an empty CoordinateSequence, the dimensions will be autodetected when it is populated. More...
 
std::unique_ptr< CoordinateSequence > create (std::vector< Coordinate > *coords, size_t dimension) const override
 
std::unique_ptr< CoordinateSequence > create (std::vector< Coordinate > &&coords, size_t dimension) const override
 
std::unique_ptr< CoordinateSequence > create (std::size_t size, std::size_t dimension) const override
 
std::unique_ptr< CoordinateSequence > create (const CoordinateSequence &seq) const override
 Creates a CoordinateSequence which is a copy of the given one. More...
 
- Public Member Functions inherited from geos::geom::CoordinateSequenceFactory
virtual std::unique_ptr< CoordinateSequence > create () const =0
 Returns an empty CoordinateSequence, the dimensions will be autodetected when it is populated. More...
 
virtual std::unique_ptr< CoordinateSequence > create (std::vector< Coordinate > *coordinates, std::size_t dimension=0) const =0
 Returns a CoordinateSequence based on the given array. More...
 
virtual std::unique_ptr< CoordinateSequence > create (std::vector< Coordinate > &&coordinates, std::size_t dimension=0) const =0
 Returns a CoordinateSequence based on the given array. More...
 
virtual std::unique_ptr< CoordinateSequence > create (std::size_t size, std::size_t dimension=0) const =0
 Creates a CoordinateSequence of the specified size and dimension. More...
 
virtual std::unique_ptr< CoordinateSequence > create (const CoordinateSequence &coordSeq) const =0
 Creates a CoordinateSequence which is a copy of the given one. More...
 

Static Public Member Functions

static const CoordinateSequenceFactory * instance ()
 Returns the singleton instance of CoordinateArraySequenceFactory.
 

Detailed Description

Creates CoordinateSequences internally represented as an array of Coordinates.

Member Function Documentation

◆ create() [1/3]

std::unique_ptr< CoordinateSequence > geos::geom::CoordinateArraySequenceFactory::create ( ) const
overridevirtual

Returns an empty CoordinateSequence, the dimensions will be autodetected when it is populated.

Implements geos::geom::CoordinateSequenceFactory.

◆ create() [2/3]

std::unique_ptr< CoordinateSequence > geos::geom::CoordinateArraySequenceFactory::create ( const CoordinateSequence &  coordSeq) const
inlineoverridevirtual

Creates a CoordinateSequence which is a copy of the given one.

This method must handle null arguments by creating an empty sequence.

Parameters
coordSeqthe coordinate sequence to copy

Implements geos::geom::CoordinateSequenceFactory.

◆ create() [3/3]

std::unique_ptr< CoordinateSequence > geos::geom::CoordinateArraySequenceFactory::create ( std::size_t  size,
std::size_t  dimension 
) const
inlineoverridevirtual
See also
CoordinateSequenceFactory::create(std::size_t, int)

Implements geos::geom::CoordinateSequenceFactory.


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