GEOS  3.9.1dev
Public Member Functions | Static Public Member Functions | List of all members
geos::geom::prep::PreparedGeometryFactory Class Reference

A factory for creating PreparedGeometrys. More...

#include <PreparedGeometryFactory.h>

Public Member Functions

std::unique_ptr< PreparedGeometrycreate (const geom::Geometry *geom) const
 

Static Public Member Functions

static std::unique_ptr< PreparedGeometryprepare (const geom::Geometry *geom)
 
static void destroy (const PreparedGeometry *geom)
 

Detailed Description

A factory for creating PreparedGeometrys.

It chooses an appropriate implementation of PreparedGeometry based on the geoemtric type of the input geometry. In the future, the factory may accept hints that indicate special optimizations which can be performed.

Author
Martin Davis

Definition at line 54 of file PreparedGeometryFactory.h.

Member Function Documentation

std::unique_ptr<PreparedGeometry> geos::geom::prep::PreparedGeometryFactory::create ( const geom::Geometry geom) const

Creates a new PreparedGeometry appropriate for the argument Geometry.

Parameters
geomthe geometry to prepare
Returns
the prepared geometry

Referenced by prepare().

Here is the caller graph for this function:

static void geos::geom::prep::PreparedGeometryFactory::destroy ( const PreparedGeometry geom)
inlinestatic

Destroys PreparedGeometry allocated with the factory.

Parameters
geomto be deallocated

Definition at line 76 of file PreparedGeometryFactory.h.

static std::unique_ptr<PreparedGeometry> geos::geom::prep::PreparedGeometryFactory::prepare ( const geom::Geometry geom)
inlinestatic

Creates a new PreparedGeometry appropriate for the argument Geometry.

Parameters
geomthe geometry to prepare
Returns
the prepared geometry

Definition at line 64 of file PreparedGeometryFactory.h.

References create().

Here is the call graph for this function:


The documentation for this class was generated from the following file: