GEOS  3.9.1dev
CoordinateArraySequenceFactory.h
Go to the documentation of this file.
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2006 Refractions Research Inc.
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the GNU Lesser General Public Licence as published
10  * by the Free Software Foundation.
11  * See the COPYING file for more information.
12  *
13  **********************************************************************/
14 
15 #ifndef GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
16 #define GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
17 
18 
19 #include <geos/export.h>
20 #include <vector>
21 
22 #include <geos/geom/CoordinateSequenceFactory.h> // for inheritance
23 
24 #include <geos/inline.h>
25 
26 // Forward declarations
27 namespace geos {
28 namespace geom {
29 class Coordinate;
30 }
31 }
32 
33 namespace geos {
34 namespace geom { // geos::geom
35 
44 
45 public:
46  std::unique_ptr<CoordinateSequence> create() const override;
47 
48  std::unique_ptr<CoordinateSequence> create(std::vector<Coordinate>* coords, std::size_t dims = 0) const override;
49 
50  std::unique_ptr<CoordinateSequence> create(std::vector<Coordinate> && coords, std::size_t dims = 0) const override;
51 
53  std::unique_ptr<CoordinateSequence> create(std::size_t size, std::size_t dimension = 0) const override;
54 
55  std::unique_ptr<CoordinateSequence> create(const CoordinateSequence& coordSeq) const override;
56 
60  static const CoordinateSequenceFactory* instance();
61 };
62 
65 
66 } // namespace geos::geom
67 } // namespace geos
68 
69 #ifdef GEOS_INLINE
70 # include "geos/geom/CoordinateArraySequenceFactory.inl"
71 #endif
72 
73 #endif // ndef GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
#define GEOS_DLL
Definition: export.h:28
Basic namespace for all GEOS functionalities.
Creates CoordinateSequences internally represented as an array of Coordinates.
A factory to create concrete instances of CoordinateSequences.
The internal representation of a list of coordinates inside a Geometry.
CoordinateArraySequenceFactory DefaultCoordinateSequenceFactory
This is for backward API compatibility.