Tree structure handling macros
This module conatins some convenience macros for handling tree structures. If you define your type as
typedef struct YOURTYPE { ... MX_TREE(struct YOURTYPE); ... } YOURTYPE;Then you can use these macros to manipulate your type as a tree. (../include/deds/tree.h)
Part of the deds library.
#define MX_TREE(type)
Declare elements for a tree structure
This macro declares elements for a tree structure. This delcaration must be included in a struct with an appropriate type. The surrounding type can then be manupulated by the other mx_tree_* functions. (../include/deds/tree.h)
#define MX_TREE_INSERT(o,p)
Insert a tree element into a parent.
The inserted element is placed after the existing children of the parent. An tree element cannot be inserted into itself. (../include/deds/tree.h)
#define MX_TREE_REMOVE(o)
Remove a tree element from a parent.
#define mx_tree_first(o)
The first child element of a parent.
#define mx_tree_last(o)
The last child element of a parent.
#define mx_tree_next(o)
The next child element with the same parent.
#define mx_tree_prev(o)
The previous child element with the same parent.
#define mx_tree_parent(o)
The parent tree element.
Generated by MXDOC 2.2 on Sun Feb 4 15:16:26 2007