src/cx/tree.h

changeset 903
a018f5916d3b
parent 902
5ed7f634f046
child 904
cdc49211d87f
equal deleted inserted replaced
902:5ed7f634f046 903:a018f5916d3b
1089 */ 1089 */
1090 __attribute__((__nonnull__)) 1090 __attribute__((__nonnull__))
1091 size_t cxTreeSubtreeSize(CxTree *tree, void *subtree_root); 1091 size_t cxTreeSubtreeSize(CxTree *tree, void *subtree_root);
1092 1092
1093 /** 1093 /**
1094 * Determines the depth of the specified subtree.
1095 *
1096 * @param tree the tree
1097 * @param subtree_root the root node of the subtree
1098 * @return the tree depth including the \p subtree_root
1099 */
1100 __attribute__((__nonnull__))
1101 size_t cxTreeSubtreeDepth(CxTree *tree, void *subtree_root);
1102
1103 /**
1094 * Creates a depth-first iterator for the specified tree. 1104 * Creates a depth-first iterator for the specified tree.
1095 * 1105 *
1096 * @param tree the tree to iterate 1106 * @param tree the tree to iterate
1097 * @param visit_on_exit true, if the iterator shall visit a node again when 1107 * @param visit_on_exit true, if the iterator shall visit a node again when
1098 * leaving the sub-tree 1108 * leaving the sub-tree

mercurial