Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
node.c File Reference
#include <cgraph/alloc.h>
#include <stdlib.h>
#include <inttypes.h>
#include <label/index.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <assert.h>
#include <label/node.h>
Include dependency graph for node.c:

Go to the source code of this file.

Functions

Node_tRTreeNewNode (void)
 
void InitNode (Node_t *n)
 
void InitBranch (Branch_t *b)
 
Rect_t NodeCover (Node_t *n)
 
int PickBranch (Rect_t *r, Node_t *n)
 
int AddBranch (RTree_t *rtp, Branch_t *b, Node_t *n, Node_t **new)
 
void DisconBranch (Node_t *n, int i)
 

Function Documentation

◆ AddBranch()

int AddBranch ( RTree_t rtp,
Branch_t b,
Node_t n,
Node_t **  new 
)

Definition at line 147 of file node.c.

References Node::branch, Branch::child, Node::count, NODECARD, NULL, and SplitNode().

Referenced by LoadNodes(), RTreeInsert(), and RTreeInsert2().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DisconBranch()

void DisconBranch ( Node_t n,
int  i 
)

Definition at line 172 of file node.c.

References Node::branch, Branch::child, Node::count, InitBranch(), and NODECARD.

Referenced by RTreeClose2().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InitBranch()

void InitBranch ( Branch_t b)

Definition at line 42 of file node.c.

References Branch::child, InitRect(), NULL, and Branch::rect.

Referenced by DisconBranch(), and InitNode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InitNode()

void InitNode ( Node_t n)

Definition at line 32 of file node.c.

References Node::branch, Node::count, InitBranch(), Node::level, and NODECARD.

Referenced by GetBranches(), and RTreeNewNode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NodeCover()

Rect_t NodeCover ( Node_t n)

Definition at line 81 of file node.c.

References Node::branch, Branch::child, CombineRect(), InitRect(), NODECARD, and Branch::rect.

Referenced by RTreeInsert(), and RTreeInsert2().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PickBranch()

int PickBranch ( Rect_t r,
Node_t n 
)

Definition at line 105 of file node.c.

References Node::branch, Branch::child, CombineRect(), NODECARD, Branch::rect, and RectArea().

Referenced by RTreeInsert2().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RTreeNewNode()

Node_t * RTreeNewNode ( void  )

Definition at line 24 of file node.c.

References gv_alloc(), and InitNode().

Referenced by RTreeInsert(), RTreeNewIndex(), and SplitNode().

Here is the call graph for this function:
Here is the caller graph for this function: