GEOS: CoordinateArraySequenceFactory.h Source File

GEOS 3.5.0

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

CoordinateArraySequenceFactory.h
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
43 class GEOS_DLL CoordinateArraySequenceFactory: public CoordinateSequenceFactory {
44
45 public:
46 CoordinateSequence *create() const;
47
48 CoordinateSequence *create(std::vector<Coordinate> *coords, std::size_t dims=0) const;
49
51 CoordinateSequence *create(std::size_t size, std::size_t dimension=0) const;
52
53 CoordinateSequence *create(const CoordinateSequence &coordSeq) const;
54
58 static const CoordinateSequenceFactory *instance();
59 };
60
62 typedef CoordinateArraySequenceFactory DefaultCoordinateSequenceFactory;
63
64 } // namespace geos::geom
65 } // namespace geos
66
67 #ifdef GEOS_INLINE
68 # include "geos/geom/CoordinateArraySequenceFactory.inl"
69 #endif
70
71 #endif // ndef GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
geos
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
geos::geom::CoordinateArraySequenceFactory
Creates CoordinateSequences internally represented as an array of Coordinates.
Definition: CoordinateArraySequenceFactory.h:43
geos::geom::CoordinateSequenceFactory
A factory to create concrete instances of CoordinateSequences.
Definition: CoordinateSequenceFactory.h:47
geos::geom::CoordinateSequence
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:59
geos::geom::DefaultCoordinateSequenceFactory
CoordinateArraySequenceFactory DefaultCoordinateSequenceFactory
This is for backward API compatibility.
Definition: CoordinateArraySequenceFactory.h:62