Electroneum
rbtree_type Struct Reference

#include <rbtree.h>

Collaboration diagram for rbtree_type:

Public Attributes

rbnode_typeroot
 
size_t count
 
int(* cmp )(const void *, const void *)
 

Detailed Description

definition for tree struct

Definition at line 76 of file rbtree.h.

Member Data Documentation

◆ cmp

int(* rbtree_type::cmp) (const void *, const void *)

Key compare function. <0,0,>0 like strcmp. Return 0 on two NULL ptrs.

Definition at line 87 of file rbtree.h.

◆ count

size_t rbtree_type::count

The number of the nodes in the tree

Definition at line 81 of file rbtree.h.

◆ root

rbnode_type* rbtree_type::root

The root of the red-black tree

Definition at line 78 of file rbtree.h.


The documentation for this struct was generated from the following file: