bu_rb_tree Struct Reference
[RedBlack trees]

#include <bu.h>

Collaboration diagram for bu_rb_tree:

Collaboration graph
[legend]

Data Fields

long rbt_magic
 Magic no. for integrity check.
int rbt_nm_nodes
 Number of nodes.
void(* rbt_print )()
 Data pretty-print function.
int rbt_debug
 Debug bits.
char * rbt_description
 Comment for diagnostics.
int rbt_nm_orders
 Number of simultaneous orders.
int(** rbt_order )()
 Comparison functions.
bu_rb_node ** rbt_root
 The actual trees.
char * rbt_unique
 Uniqueness flags.
bu_rb_noderbt_current
 Current node.
bu_rb_list rbt_nodes
 All nodes.
bu_rb_list rbt_packages
 All packages.
bu_rb_noderbt_empty_node
 Sentinel representing nil.

Detailed Description

B U _ R B _ T R E E

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 1519 of file bu.h.


Field Documentation

long rbt_magic
 

Magic no. for integrity check.

Definition at line 1522 of file bu.h.

int rbt_nm_nodes
 

Number of nodes.

Definition at line 1523 of file bu.h.

void(* rbt_print)()
 

Data pretty-print function.

int rbt_debug
 

Debug bits.

Definition at line 1526 of file bu.h.

char* rbt_description
 

Comment for diagnostics.

Definition at line 1527 of file bu.h.

int rbt_nm_orders
 

Number of simultaneous orders.

Definition at line 1529 of file bu.h.

int(** rbt_order)()
 

Comparison functions.

struct bu_rb_node** rbt_root
 

The actual trees.

Definition at line 1531 of file bu.h.

char* rbt_unique
 

Uniqueness flags.

Definition at line 1532 of file bu.h.

struct bu_rb_node* rbt_current
 

Current node.

Definition at line 1533 of file bu.h.

struct bu_rb_list rbt_nodes
 

All nodes.

Definition at line 1534 of file bu.h.

struct bu_rb_list rbt_packages
 

All packages.

Definition at line 1535 of file bu.h.

struct bu_rb_node* rbt_empty_node
 

Sentinel representing nil.

Definition at line 1536 of file bu.h.


The documentation for this struct was generated from the following file:
Generated on Mon Sep 18 01:25:11 2006 for BRL-CAD by  doxygen 1.4.6