BRL-CAD
|
#include <redblack.h>
Data Fields | |
uint32_t | rbt_magic |
int | rbt_nm_nodes |
void(* | rbt_print )(void *) |
int | rbt_debug |
const char * | rbt_description |
int | rbt_nm_orders |
int(** | rbt_compar )(const void *, const void *) |
struct bu_rb_node ** | rbt_root |
char * | rbt_unique |
struct bu_rb_node * | rbt_current |
struct bu_rb_list | rbt_nodes |
struct bu_rb_list | rbt_packages |
struct bu_rb_node * | rbt_empty_node |
This is the only data structure used in the red-black tree package to which application software need make any explicit reference.
The members of this structure are grouped into three classes:
Class I: Reading is appropriate, when necessary, but applications should not modify. Class II: Reading and modifying are both appropriate, when necessary. Class III: All access should be through routines provided in the package. Touch these at your own risk!
Definition at line 113 of file redblack.h.
uint32_t rbt_magic |
Magic no. for integrity check
Definition at line 115 of file redblack.h.
int rbt_nm_nodes |
Number of nodes
Definition at line 116 of file redblack.h.
void(* rbt_print) (void *) |
Data pretty-print function
Definition at line 119 of file redblack.h.
int rbt_debug |
Debug bits
Definition at line 120 of file redblack.h.
const char* rbt_description |
Comment for diagnostics
Definition at line 121 of file redblack.h.
int rbt_nm_orders |
Number of simultaneous orders
Definition at line 124 of file redblack.h.
int(** rbt_compar) (const void *, const void *) |
Comparison functions
Definition at line 125 of file redblack.h.
struct bu_rb_node** rbt_root |
The actual trees
Definition at line 126 of file redblack.h.
char* rbt_unique |
Uniqueness flags
Definition at line 127 of file redblack.h.
struct bu_rb_node* rbt_current |
Current node
Definition at line 128 of file redblack.h.
struct bu_rb_list rbt_nodes |
All nodes
Definition at line 129 of file redblack.h.
struct bu_rb_list rbt_packages |
All packages
Definition at line 130 of file redblack.h.
struct bu_rb_node* rbt_empty_node |
Sentinel representing nil
Definition at line 131 of file redblack.h.