15#ifndef GEOS_INDEX_STRTREE_SIRTREE_H
16#define GEOS_INDEX_STRTREE_SIRTREE_H
18#include <geos/export.h>
20#include <geos/index/strtree/AbstractSTRtree.h>
21#include <geos/index/strtree/Interval.h>
60 void insert(
double x1,
double x2,
void* item);
66 std::vector<void*>*
query(
double x1,
double x2)
68 std::vector<void*>* results =
new std::vector<void*>();
69 Interval interval(std::min(x1, x2), std::max(x1, x2));
77 std::vector<void*>*
query(
double x) {
return query(x,x); }
84 bool intersects(
const void* aBounds,
const void* bBounds);
98 std::auto_ptr<BoundableList> sortBoundables(
const BoundableList* input);
102 IntersectsOp* intersectsOp;
A node of the STR tree.
Definition AbstractNode.h:42
A test for intersection between two bounds, necessary because subclasses of AbstractSTRtree have diff...
Definition AbstractSTRtree.h:166
virtual void insert(const void *bounds, void *item)
Also builds the tree, if necessary.
AbstractSTRtree(std::size_t newNodeCapacity)
Definition AbstractSTRtree.h:250
void query(const void *searchBounds, std::vector< void * > &foundItems)
Also builds the tree, if necessary.
A contiguous portion of 1D-space. Used internally by SIRtree.
Definition strtree/Interval.h:28
SIRtree()
Constructs an SIRtree with the default node capacity.
std::auto_ptr< BoundableList > createParentBoundables(BoundableList *childBoundables, int newLevel)
Sorts the childBoundables then divides them into groups of size M, where M is the node capacity.
SIRtree(std::size_t nodeCapacity)
Constructs an SIRtree with the given maximum number of child nodes that a node may have.
std::vector< void * > * query(double x)
Definition SIRtree.h:77
std::vector< void * > * query(double x1, double x2)
Definition SIRtree.h:66
IntersectsOp * getIntersectsOp()
Definition SIRtree.h:96
Contains 2-D and 1-D versions of the Sort-Tile-Recursive (STR) tree, a query-only R-tree.
Definition SIRtreePointInRing.h:32
std::vector< Boundable * > BoundableList
A list of boundables. TODO: use a list.
Definition AbstractSTRtree.h:44
Provides classes for various kinds of spatial indexes.
Definition IndexedNestedRingTester.h:31
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25