15 #ifndef GEOS_INDEX_STRTREE_SIRTREE_H 16 #define GEOS_INDEX_STRTREE_SIRTREE_H 56 SIRtree(std::size_t nodeCapacity);
60 void insert(
double x1,
double x2,
void* item);
70 std::vector<void*>* results =
new std::vector<void*>();
71 Interval interval(std::min(x1, x2), std::max(x1, x2));
96 bool intersects(
const void* aBounds,
const void* bBounds)
override;
103 std::unique_ptr<BoundableList> createParentBoundables(
114 std::unique_ptr<BoundableList> sortBoundables(
const BoundableList* input);
126 #endif // GEOS_INDEX_STRTREE_SIRTREE_H A contiguous portion of 1D-space. Used internally by SIRtree.
std::vector< void * > * query(double x1, double x2)
std::vector< void * > * query(double x)
IntersectsOp * intersectsOp
Base class for STRtree and SIRtree.
void query(const void *searchBounds, std::vector< void * > &foundItems)
Also builds the tree, if necessary.
A test for intersection between two bounds, necessary because subclasses of AbstractSTRtree have diff...
virtual void insert(const void *bounds, void *item)
Also builds the tree, if necessary.
Basic namespace for all GEOS functionalities.
IntersectsOp * getIntersectsOp() override
One-dimensional version of an STR-packed R-tree.
std::vector< std::unique_ptr< Interval > > intervals
std::vector< Boundable * > BoundableList
A list of boundables. TODO: use a list.