GEOS  3.3.3
PreparedGeometryFactory.h
1 /**********************************************************************
2  * $Id: PreparedGeometryFactory.h 3255 2011-03-01 17:56:10Z mloskot $
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  *
17  * Last port: geom/prep/PreparedGeometryFactory.java rev. 1.4 (JTS-1.10)
18  *
19  **********************************************************************/
20 
21 #ifndef GEOS_GEOM_PREP_PREPAREDGEOMETRYFACTORY_H
22 #define GEOS_GEOM_PREP_PREPAREDGEOMETRYFACTORY_H
23 
24 #include <geos/export.h>
25 #include <geos/geom/prep/PreparedGeometry.h>
26 
27 namespace geos {
28  namespace geom {
29  namespace prep {
30  class PreparedGeometry;
31  }
32  }
33 }
34 
35 
36 namespace geos {
37 namespace geom { // geos::geom
38 namespace prep { // geos::geom::prep
39 
40 
54 {
55 public:
56 
63  static const PreparedGeometry * prepare(const geom::Geometry * geom)
64  {
66  return pf.create(geom);
67  }
68 
74  static void destroy(const PreparedGeometry* geom)
75  {
76  delete geom;
77  }
78 
85  const PreparedGeometry* create(const geom::Geometry* geom) const;
86 
87 };
88 
89 } // namespace geos::geom::prep
90 } // namespace geos::geom
91 } // namespace geos
92 
93 #endif // GEOS_GEOM_PREP_PREPAREDGEOMETRYFACTORY_H
94 /**********************************************************************
95  * $Log$
96  **********************************************************************/
97