Name
Module Tree Garbage Collector -- Structures and
APIs
Description
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.
Details
gdome_treegc_livenodes ()
int gdome_treegc_livenodes (GdomeNode *node);
|
gdome_treegc_adjust ()
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.
gdome_treegc_insertSubtree
()
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.
gdome_treegc_removeSubtree
()
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.
gdome_treegc_addRef ()
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.
gdome_treegc_delRef ()
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.