GEOS 3.3.8

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

- File List

CoordinateArraySequenceFactory.h
1 /**********************************************************************
2 * $Id: CoordinateArraySequenceFactory.h 2998 2010-05-31 16:25:57Z warmerdam $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
7 * Copyright (C) 2006 Refractions Research Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************/
15
16 #ifndef GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
17 #define GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
18
19
20 #include <geos/export.h>
21 #include <vector>
22
23 #include <geos/geom/CoordinateSequenceFactory.h> // for inheritance
24
25 #include <geos/inline.h>
26
27 // Forward declarations
28 namespace geos {
29 namespace geom {
30 class Coordinate;
31 }
32 }
33
34 namespace geos {
35 namespace geom { // geos::geom
36
44 class GEOS_DLL CoordinateArraySequenceFactory: public CoordinateSequenceFactory {
45
46 public:
47
52 CoordinateSequence *create(std::vector<Coordinate> *coords) const;
53
54 CoordinateSequence *create(std::vector<Coordinate> *coords, std::size_t dims) const;
55
57 CoordinateSequence *create(std::size_t size, std::size_t dimension=0) const;
58
62 static const CoordinateSequenceFactory *instance();
63 };
64
66 typedef CoordinateArraySequenceFactory DefaultCoordinateSequenceFactory;
67
68 } // namespace geos::geom
69 } // namespace geos
70
71 #ifdef GEOS_INLINE
72 # include "geos/geom/CoordinateArraySequenceFactory.inl"
73 #endif
74
75 #endif // ndef GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
76
77 /**********************************************************************
78 * $Log$
79 * Revision 1.4 2006/06/12 11:29:23 strk
80 * unsigned int => size_t
81 *
82 * Revision 1.3 2006/06/12 10:10:39 strk
83 * Fixed getGeometryN() to take size_t rather then int, changed unsigned int parameters to size_t.
84 *
85 * Revision 1.2 2006/03/24 09:52:41 strk
86 * USE_INLINE => GEOS_INLINE
87 *
88 * Revision 1.1 2006/03/09 16:46:49 strk
89 * geos::geom namespace definition, first pass at headers split
90 *
91 **********************************************************************/