Void testhash::Parent::cascadeRemoveTableListChild() const { Child prev; for ( Child current = getFirstTableListChild(); current.isValid(); current = current.getNextParentTableListChild()) { if (prev.isValid()) { prev.removeTableListParentHandler(); prev.destroy(); } prev = current; } if (prev.isValid()) { prev.removeTableListParentHandler(); prev.destroy(); } }
Void testlist::Parent::cascadeRemoveChild() const { Child prev; for ( Child current = getFirstChild(); current.isValid(); current = current.getNextParentChild()) { if (prev.isValid()) { prev.removeParentHandler(); prev.setParent(Parent()); prev.destroy(); } prev = current; } if (prev.isValid()) { prev.removeParentHandler(); prev.destroy(); } }