#include <Inventor/C/basic.h>
#include <stdarg.h>
Go to the source code of this file.
◆ cc_rbptree_node
typedef struct cc_rbptree_node cc_rbptree_node |
The type definition for the rbptree node structure.
◆ cc_rbptree
typedef struct cc_rbptree cc_rbptree |
The type definition for the whole rbptree structure.
◆ cc_rbptree_traversecb
typedef void cc_rbptree_traversecb(void *p, void *data, void *closure) |
The type definition for a tree traversal callback function.
◆ cc_rbptree_init()
Initialize t
. This is needed before making any operations on the tree.
◆ cc_rbptree_clean()
Delete all nodes in t
. After this call, the tree will be reinitialized to an empty tree.
◆ cc_rbptree_insert()
void cc_rbptree_insert |
( |
cc_rbptree * | t, |
|
|
void * | p, |
|
|
void * | data ) |
Insert a new value p
into t
.
◆ cc_rbptree_remove()
SbBool cc_rbptree_remove |
( |
cc_rbptree * | t, |
|
|
void * | p ) |
Remove the (first) node with value p
. Returns TRUE if p
is found and removed, FALSE otherwise.
◆ cc_rbptree_size()
Returns the total numbers of items in the tree
◆ cc_rbptree_traverse()
◆ cc_rbptree_debug()
for debugging only. Prints the tree to stdout.