>
Module Tree Garbage CollectorGdome2 Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up |
int gdome_treegc_livenodes (GdomeNode *node); void gdome_treegc_adjust (GdomeNode *node, int adj); void gdome_treegc_insertSubtree (GdomeNode *node); void gdome_treegc_removeSubtree (GdomeNode *node); void gdome_treegc_addRef (GdomeNode *node); void gdome_treegc_delRef (GdomeNode *node); |
This is module is internally used to manage the number of gdome2 live references. Externally you can use this module to test the number of live references in your Document with gdome_treegc_livenodes() function.
void gdome_treegc_adjust (GdomeNode *node, int adj); |
Adjust the number of live nodes in the Document main tree. If adj is positive, increases livenodes field else decreases it.
void gdome_treegc_insertSubtree (GdomeNode *node); |
Increase the livenodes field of the Document main tree with the number of live nodes present in the specified subtree.
void gdome_treegc_removeSubtree (GdomeNode *node); |
Decrease the livenodes field of the Document main tree with the number of live nodes present in the specifed subtree.
void gdome_treegc_addRef (GdomeNode *node); |
Increase the livenodes field if the specified node is attached to the main doc tree or if it is a Notation or a Entity Declaration node.
void gdome_treegc_delRef (GdomeNode *node); |
Decrease the livenodes field if the specified node id attached to the main doc tree or if it is a Notation or a Entity Declaration node.