19 #ifndef GEOS_INDEX_STRTREE_BOUNDABLEPAIR_H 20 #define GEOS_INDEX_STRTREE_BOUNDABLEPAIR_H void expand(const Boundable *bndComposite, const Boundable *bndOther, bool isFlipped, BoundablePairQueue &priQ, double minDistance)
const Boundable * getBoundable(int i) const
double getDistance() const
Gets the minimum possible distance between the Boundables in this pair.
const Boundable * boundable2
void expandToQueue(BoundablePairQueue &, double minDistance)
static bool isComposite(const Boundable *item)
BoundablePair(const Boundable *boundable1, const Boundable *boundable2, ItemDistance *itemDistance)
std::priority_queue< BoundablePair *, std::vector< BoundablePair * >, BoundablePairQueueCompare > BoundablePairQueue
A function method which computes the distance between two ItemBoundables in an STRtree. Used for Nearest Neighbour searches.
const Boundable * boundable1
double maximumDistance()
Computes the maximum distance between any two items in the pair of nodes.
Basic namespace for all GEOS functionalities.
ItemDistance * itemDistance
bool operator()(const BoundablePair *a, const BoundablePair *b)
A spatial object in an AbstractSTRtree.
double distance() const
Computes the distance between the Boundables in this pair. The boundables are either composites or le...
A pair of Boundables, whose leaf items support a distance metric between them.
static double area(const Boundable *b)