GEOS: PreparedGeometryFactory.h Source File

GEOS 3.5.0

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

- File List

PreparedGeometryFactory.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 *
16 * Last port: geom/prep/PreparedGeometryFactory.java rev. 1.4 (JTS-1.10)
17 *
18 **********************************************************************/
19
20 #ifndef GEOS_GEOM_PREP_PREPAREDGEOMETRYFACTORY_H
21 #define GEOS_GEOM_PREP_PREPAREDGEOMETRYFACTORY_H
22
23 #include <geos/export.h>
24 #include <geos/geom/prep/PreparedGeometry.h>
25
26 namespace geos {
27 namespace geom {
28 namespace prep {
29 class PreparedGeometry;
30 }
31 }
32 }
33
34
35 namespace geos {
36 namespace geom { // geos::geom
37 namespace prep { // geos::geom::prep
38
39
52 class GEOS_DLL PreparedGeometryFactory
53 {
54 public:
55
62 static const PreparedGeometry * prepare(const geom::Geometry * geom)
63 {
64 PreparedGeometryFactory pf;
65 return pf.create(geom);
66 }
67
73 static void destroy(const PreparedGeometry* geom)
74 {
75 delete geom;
76 }
77
84 const PreparedGeometry* create(const geom::Geometry* geom) const;
85
86 };
87
88 } // namespace geos::geom::prep
89 } // namespace geos::geom
90 } // namespace geos
91
92 #endif // GEOS_GEOM_PREP_PREPAREDGEOMETRYFACTORY_H
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:167
geos::geom::prep::PreparedGeometryFactory::create
const PreparedGeometry * create(const geom::Geometry *geom) const
geos::geom::prep::PreparedGeometryFactory::prepare
static const PreparedGeometry * prepare(const geom::Geometry *geom)
Definition: PreparedGeometryFactory.h:62
geos::geom::prep::PreparedGeometryFactory::destroy
static void destroy(const PreparedGeometry *geom)
Definition: PreparedGeometryFactory.h:73
geos::geom::prep::PreparedGeometry
An interface for classes which prepare Geometrys in order to optimize the performance of repeated cal...
Definition: PreparedGeometry.h:53
geos
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
geos::geom::prep::PreparedGeometryFactory
A factory for creating PreparedGeometrys.
Definition: PreparedGeometryFactory.h:52