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

TREE_NODE

Module: TREE: various tree with generic support

structure of a n-ary TREE node

#include "n_trees.h"

Public Attributes

Name
LIST_NODE * parent_list_node
pointer to parent container of the TREE_NODE, LIST_NODE
struct TREE_NODE * parent
pointer to parent
void(*)(void *ptr) destroy_func
value destructor if of type ptr and specified, else a simple free will be used
NODE_DATA data
structure holding values for node
LIST * children
ordered list of children

Public Attributes Documentation

variable parent_list_node

LIST_NODE * parent_list_node;

pointer to parent container of the TREE_NODE, LIST_NODE

variable parent

struct TREE_NODE * parent;

pointer to parent

variable destroy_func

void(*)(void *ptr) destroy_func;

value destructor if of type ptr and specified, else a simple free will be used

variable data

NODE_DATA data;

structure holding values for node

variable children

LIST * children;

ordered list of children