Ejemplo n.º 1
0
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();
    }
}
Ejemplo n.º 2
0
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();
    }
}