Next: void deleteSubtree() Up: Member Functions of Previous: void outputSubtree(iostream&outputFile)

void deleteChildrenOfType(F_NodeTypetypeWanted)

All children the node has of the specified type are deleted from the tree, and their memory is returned to the free store. The parent still exists on the tree.

The following code deletes all erp children of the eventNode.


eventNode *ev;
...
if (no_erp_processing_wanted) ev->deleteChildrenOfType(erpType);


walter@
Wed Aug 10 11:53:26 PDT 1994