---
name: "rbptree.h"
section: "3"
platform: "linux"
package: "libcoin80-doc"
version: "3.1.4~abc9f50-7"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/rbptree.h"
---

# rbptree.h(3)

## NAME

rbptree.h -

## SYNOPSIS

`#include <Inventor/C/basic.h>`\
 `#include <stdarg.h>`\

### Typedefs

typedef struct cc\_rbptree\_node **cc\_rbptree\_node**\
 typedef struct cc\_rbptree **cc\_rbptree**\
 typedef void **cc\_rbptree\_traversecb** (void \*p, void \*data, void \*closure)\

### Functions

void **cc\_rbptree\_init** (cc\_rbptree \*t)\
 void **cc\_rbptree\_clean** (cc\_rbptree \*t)\
 void **cc\_rbptree\_insert** (cc\_rbptree \*t, void \*p, void \*data)\
 SbBool **cc\_rbptree\_remove** (cc\_rbptree \*t, void \*p)\
 uint32\_t **cc\_rbptree\_size** (const cc\_rbptree \*t)\
 void **cc\_rbptree\_traverse** (const cc\_rbptree \*t, cc\_rbptree\_traversecb \*func, void \*closure)\
 void **cc\_rbptree\_debug** (const cc\_rbptree \*t)\

## Function Documentation

### void cc\_rbptree\_init (cc\_rbptree \*t)

Initialize *t*. This is needed before making any operations on the tree.

### void cc\_rbptree\_clean (cc\_rbptree \*t)

Delete all nodes in . After this call, the tree will be reinitialized to an empty tree.

### void cc\_rbptree\_insert (cc\_rbptree \*t, void \*p, void \*data)

Insert a new value *p* into *t*.

### 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.

### uint32\_t cc\_rbptree\_size (const cc\_rbptree \*t)

Returns the total numbers of items in the tree

### void cc\_rbptree\_debug (const cc\_rbptree \*t)

for debugging only. Prints the tree to stdout.

## Author

Generated automatically by Doxygen for Coin from the source code.
