25 #include "rbt_common.h"
40 rbt_t *rbt_str_new (
void);
43 void rbt_str_free_cb2 (
rbt_t *rbt,
void (*callback)(
struct rbt_str_node *,
void *user),
void *user);
45 int rbt_str_add(
rbt_t *rbt,
char *key,
void *data);
46 void *rbt_str_rep(
rbt_t *rbt,
const char *key,
void *data);
47 int rbt_str_del(
rbt_t *rbt,
const char *key,
void **n);
49 int rbt_str_get(
rbt_t *rbt,
const char *key,
void **data);
51 int rbt_str_walk_preorder(
rbt_t *rbt,
int (*callback)(
struct rbt_str_node *), rbt_walk_t flags);
52 int rbt_str_walk_inorder(
rbt_t *rbt,
int (*callback)(
struct rbt_str_node *), rbt_walk_t flags);
53 int rbt_str_walk_inorder2(
rbt_t *rbt,
int (*callback)(
struct rbt_str_node *,
void *),
void *user, rbt_walk_t flags);
54 int rbt_str_walk_postorder(
rbt_t *rbt,
int (*callback)(
struct rbt_str_node *), rbt_walk_t flags);
55 int rbt_str_walk_levelorder(
rbt_t *rbt,
int (*callback)(
struct rbt_str_node *), rbt_walk_t flags);
56 int rbt_str_walk(
rbt_t *rbt, rbt_walk_t type,
int (*callback)(
struct rbt_str_node *));
57 size_t rbt_str_size(
rbt_t *rbt);
Definition: rbt_common.h:129
Generic node structure Lowest bit of _chld[0] holds the color bit.
Definition: rbt_common.h:64