5 Struct TREE
gullradriel edited this page 2026-10-09 00:55:18 +02:00

TREE

Module: TREE: various tree with generic support

structure of a TREE

#include "n_trees.h"

Public Attributes

Name
pthread_rwlock_t rwlock
mutex for thread safety (optional)
TREE_NODE * root
pointer to first node
size_t nb_nodes
number of nodes in the tree
size_t height
height of the tree

Public Attributes Documentation

variable rwlock

pthread_rwlock_t rwlock;

mutex for thread safety (optional)

variable root

TREE_NODE * root;

pointer to first node

variable nb_nodes

size_t nb_nodes;

number of nodes in the tree

variable height

size_t height;

height of the tree