18 #ifndef _R_TREE_INDEX_H_
19 #define _R_TREE_INDEX_H_
31 #define NODETYPE(l, fd) ((l) == 0 ? 0 : ((fd) < 0 ? 1 : 2))
100 #define RTreeCopyRect(r1, r2, t) \
101 memcpy((r1)->boundary, (r2)->boundary, (t)->rectsize)
int RTreeAddBranch(struct RTree_Branch *, struct RTree_Node *, struct RTree_Node **, struct RTree_ListBranch **, struct RTree_Rect *, char *, struct RTree *)
struct RTree_ListNode * RTreeNewListNode(void)
void RTreePrintNode(struct RTree_Node *, int, struct RTree *)
void RTreeDisconnectBranch(struct RTree_Node *, int, struct RTree *)
int RTreeSearchM(struct RTree *, struct RTree_Rect *, SearchHitCallback *, void *)
int RTreeInsertRectF(struct RTree_Rect *, union RTree_Child, int, struct RTree *)
void RTreeNodeCover(struct RTree_Node *, struct RTree_Rect *, struct RTree *)
void RTreeFreeListNode(struct RTree_ListNode *)
RectReal RTreeRectSphericalVolume(struct RTree_Rect *, struct RTree *)
int RTreeGetLeafMax(struct RTree *)
RectReal RTreeRectArea(struct RTree_Rect *, struct RTree *)
int RTreeDeleteRectM(struct RTree_Rect *, union RTree_Child, struct RTree *)
void RTreeReInsertNode(struct RTree_Node *, struct RTree_ListNode **)
int RTreeSearchF(struct RTree *, struct RTree_Rect *, SearchHitCallback *, void *)
size_t RTreeRewriteNode(struct RTree_Node *, off_t, struct RTree *)
void RTreeNullRect(struct RTree_Rect *, struct RTree *)
void RTreeAddNodePos(off_t, int, struct RTree *)
void RTreeCopyBranch(struct RTree_Branch *, struct RTree_Branch *, struct RTree *)
int RTreeInsertRectM(struct RTree_Rect *, union RTree_Child, int, struct RTree *)
RectReal RTreeRectVolume(struct RTree_Rect *, struct RTree *)
struct RTree_Node * RTreeGetNode(off_t, int, struct RTree *)
int RTreeDeleteRectF(struct RTree_Rect *, union RTree_Child, struct RTree *)
int RTreePickBranch(struct RTree_Rect *, struct RTree_Node *, struct RTree *)
RectReal RTreeRectMargin(struct RTree_Rect *, struct RTree *)
void RTreeSplitNode(struct RTree_Node *, struct RTree_Branch *, struct RTree_Node *, struct RTree *)
void RTreeCombineRect(struct RTree_Rect *, struct RTree_Rect *, struct RTree_Rect *, struct RTree *)
void RTreeNodeChanged(struct RTree_Node *, off_t, struct RTree *)
int RTreeSetNodeMax(int, struct RTree *)
int RTreeExpandRect(struct RTree_Rect *, struct RTree_Rect *, struct RTree *)
int RTreeValidChildM(union RTree_Child *child)
void RTreeInitRect(struct RTree_Rect *, struct RTree *)
Initialize a rectangle to have all 0 coordinates.
int RTreeGetNodeMax(struct RTree *)
void RTreeFreeListBranch(struct RTree_ListBranch *)
int RTreeSetLeafMax(int, struct RTree *)
int RTreeCompareRect(struct RTree_Rect *, struct RTree_Rect *, struct RTree *)
int RTreeValidChildF(union RTree_Child *)
int SearchHitCallback(int id, const struct RTree_Rect *rect, void *arg)
struct RTree_ListBranch * next
struct RTree_ListFNode * next
struct RTree_ListNode * next