simplify/src/InclusionTree.cxx
//append new child at the end of children list
append new child at the end of children list
append new child at the end of children list
void InclusionTree::AddChild(InclusionNode* parent, InclusionNode* child)
{
  InclusionNode* node = parent->GetLast();
  child->SetParent(parent);
  if (node == 0)
    {
      parent->SetFirst(child);
      parent->SetLast(child);
    }
  else
    {
      node->SetNext(child);
      child->SetPrev(node);
      parent->SetLast(child);
    }
}
void InclusionTree :: AddChild ( InclusionNode * parent , InclusionNode * child ) { InclusionNode * node = parent -> GetLast ( ) ; child -> SetParent ( parent ) ; if ( node == 0 ) { parent -> SetFirst ( child ) ; parent -> SetLast ( child ) ; } else { node -> SetNext ( child ) ; child -> SetPrev ( node ) ; parent -> SetLast ( child ) ; } }
append new child at the end of children list
append new child at the end of children list