|
|
◆ verify_search()
| static void verify_search |
( |
const char * |
name, |
|
|
const RTree * |
rtree, |
|
|
RTreeSearchOp |
op, |
|
|
const void * |
query, |
|
|
const char * |
boxes, |
|
|
size_t |
bboxsize, |
|
|
MeosArray * |
ids, |
|
|
bool(*)(const void *, const void *) |
predicate |
|
) |
| |
|
static |
Generic test harness: compare R-tree search results against a brute-force scan using the given predicate.
- Parameters
-
| [in] | name | Label for the test (e.g., "FLOATSPAN overlaps") |
| [in] | rtree | The R-tree to search |
| [in] | op | The search operation (overlaps, contains, contained by) |
| [in] | query | The query bounding box |
| [in] | boxes | Array of stored bounding boxes |
| [in] | bboxsize | Size of each bounding box in bytes |
| [in] | ids | Reusable MeosArray for collecting results |
| [in] | predicate | Brute-force predicate matching the search operation |
|