ucx
UAP Common Extensions
Loading...
Searching...
No Matches
cx_tree_s Struct Reference

Structure for holding the base data of a tree. More...

#include <tree.h>

Data Fields

struct cx_collection_s collection
 Base attributes.
 
void * root
 A pointer to the root node.
 
size_t node_size
 The size of the node structure.
 
ptrdiff_t loc_parent
 Offset in the node struct for the parent pointer.
 
ptrdiff_t loc_children
 Offset in the node struct for the children linked list.
 
ptrdiff_t loc_last_child
 Optional offset in the node struct for the pointer to the last child in the linked list (negative if there is no such pointer).
 
ptrdiff_t loc_prev
 Offset in the node struct for the previous sibling pointer.
 
ptrdiff_t loc_next
 Offset in the node struct for the next sibling pointer.
 
ptrdiff_t loc_data
 Offset in the node struct where the payload is located.
 

Detailed Description

Structure for holding the base data of a tree.

Field Documentation

◆ root

void* cx_tree_s::root

A pointer to the root node.

Will be NULL when size is 0.


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