MobilityDB 1.3
Loading...
Searching...
No Matches

◆ node_swap()

static void node_swap ( RTreeNode node,
int  i,
int  j 
)
static

Swaps two STBoxes and their associated data within an RTree node.

This function exchanges the positions of two STBoxes within a single RTree node. If the node is a leaf, it also swaps the associated IDs. For internal nodes, it swaps the pointers to child nodes. This function is useful for reordering elements within a node.

Parameters
[in,out]nodePointer to the RTreeNode structure containing the STBoxes and associated data.
[in]iThe index of the first STBox to be swapped.
[in]jThe index of the second STBox to be swapped.