GEOS  3.9.1dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
geos::operation::valid::IndexedNestedRingTester Class Reference

Tests whether any of a set of LinearRings are nested inside another ring in the set, using a spatial index to speed up the comparisons. More...

#include <IndexedNestedRingTester.h>

Collaboration diagram for geos::operation::valid::IndexedNestedRingTester:
[legend]

Public Member Functions

 IndexedNestedRingTester (geomgraph::GeometryGraph *newGraph, size_t initialCapacity)
 
 ~IndexedNestedRingTester ()
 
const geom::CoordinategetNestedPoint () const
 
void add (const geom::LinearRing *ring)
 
bool isNonNested ()
 

Private Member Functions

void buildIndex ()
 

Private Attributes

geomgraph::GeometryGraphgraph
 Externally owned. More...
 
std::vector< const geom::LinearRing * > rings
 Ownership of this vector elements are externally owned. More...
 
geos::index::SpatialIndexindex
 
const geom::CoordinatenestedPt
 

Detailed Description

Tests whether any of a set of LinearRings are nested inside another ring in the set, using a spatial index to speed up the comparisons.

Definition at line 50 of file IndexedNestedRingTester.h.

Constructor & Destructor Documentation

geos::operation::valid::IndexedNestedRingTester::IndexedNestedRingTester ( geomgraph::GeometryGraph newGraph,
size_t  initialCapacity 
)
inline

Definition at line 53 of file IndexedNestedRingTester.h.

geos::operation::valid::IndexedNestedRingTester::~IndexedNestedRingTester ( )

Member Function Documentation

void geos::operation::valid::IndexedNestedRingTester::add ( const geom::LinearRing ring)
inline
Parameters
ring: ownership retained by caller

Definition at line 78 of file IndexedNestedRingTester.h.

void geos::operation::valid::IndexedNestedRingTester::buildIndex ( )
private
const geom::Coordinate* geos::operation::valid::IndexedNestedRingTester::getNestedPoint ( ) const
inline

Definition at line 71 of file IndexedNestedRingTester.h.

bool geos::operation::valid::IndexedNestedRingTester::isNonNested ( )

Member Data Documentation

geomgraph::GeometryGraph* geos::operation::valid::IndexedNestedRingTester::graph
private

Externally owned.

Definition at line 88 of file IndexedNestedRingTester.h.

geos::index::SpatialIndex* geos::operation::valid::IndexedNestedRingTester::index
private

Definition at line 94 of file IndexedNestedRingTester.h.

const geom::Coordinate* geos::operation::valid::IndexedNestedRingTester::nestedPt
private

Definition at line 97 of file IndexedNestedRingTester.h.

std::vector<const geom::LinearRing*> geos::operation::valid::IndexedNestedRingTester::rings
private

Ownership of this vector elements are externally owned.

Definition at line 91 of file IndexedNestedRingTester.h.


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