liba 0.1.15
An algorithm library based on C/C++
|
instance structure for red–black binary search tree node More...
#include <rbt.h>
Data Fields | |
struct a_rbt_node * | left |
struct a_rbt_node * | right |
uintptr_t | parent_ |
instance structure for red–black binary search tree node
struct a_rbt_node* a_rbt_node::left |
pointer to left child or null
uintptr_t a_rbt_node::parent_ |
pointer to parent combined with the color. The mapping is: 0 => red, 1 => black. The rest of the bits are the pointer to the parent node. It must be 2-byte aligned, and it will be null if this is the root node and therefore has no parent.
struct a_rbt_node* a_rbt_node::right |
pointer to right child or null