model_server/obj/src/objTree.h.cxx
// Put obj to tree of this before this
Put obj to tree of this before this
Put obj to tree of this before this
void objTree::put_before(objTree * t) 
  {
  objTree * parent = this->get_parent();
  t->remove_from_tree();                      	
  t->put_prev_link(this->get_prev());	
  this->put_prev_link(t);     			
  t->put_parent_link(parent);     		
  if (t->get_prev() == 0)            		
    parent->put_first_link(t);
  }
void objTree :: put_before ( objTree * t ) { objTree * parent = this -> get_parent ( ) ; t -> remove_from_tree ( ) ; t -> put_prev_link ( this -> get_prev ( ) ) ; this -> put_prev_link ( t ) ; t -> put_parent_link ( parent ) ; if ( t -> get_prev ( ) == 0 ) parent -> put_first_link ( t ) ; }
Put obj to tree of this before this
Put obj to tree of this before this
// remove obj from old tree // setup new prev/next // setup rel. to parent // replace this as the first child