PreparedGeometryFactory.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
*
**********************************************************************
*
* Last port: geom/prep/PreparedGeometryFactory.java rev. 1.4 (JTS-1.10)
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <geos/geom/prep/PreparedGeometry.h>
#include <memory>
namespace geos {
namespace geom {
namespace prep {
class PreparedGeometry;
}
}
}
namespace geos {
namespace geom { // geos::geom
namespace prep { // geos::geom::prep
class GEOS_DLL PreparedGeometryFactory {
public:
static std::unique_ptr<PreparedGeometry>
prepare(const geom::Geometry* geom)
{
PreparedGeometryFactory pf;
return pf.create(geom);
}
static void
destroy(const PreparedGeometry* geom)
{
delete geom;
}
std::unique_ptr<PreparedGeometry> create(const geom::Geometry* geom) const;
};
} // namespace geos::geom::prep
} // namespace geos::geom
} // namespace geos
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::geom::prep::PreparedGeometryFactory
A factory for creating PreparedGeometrys.
Definition PreparedGeometryFactory.h:53
geos::geom::prep::PreparedGeometryFactory::create
std::unique_ptr< PreparedGeometry > create(const geom::Geometry *geom) const
geos::geom::prep::PreparedGeometryFactory::destroy
static void destroy(const PreparedGeometry *geom)
Definition PreparedGeometryFactory.h:75
geos::geom::prep::PreparedGeometryFactory::prepare
static std::unique_ptr< PreparedGeometry > prepare(const geom::Geometry *geom)
Definition PreparedGeometryFactory.h:63
geos::geom::prep::PreparedGeometry
An interface for classes which prepare Geometrys in order to optimize the performance of repeated cal...
Definition PreparedGeometry.h:58
geos::geom::prep
Contains classes and interfaces implementing algorithms that optimize the performance of repeated cal...
Definition AbstractPreparedPolygonContains.h:30
geos::geom
Definition Angle.h:26
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38