model_server/driver_aset/src/driver.cxx
// Replace non leaf nodes with first leaf;
Replace non leaf nodes with first leaf.
Replace non leaf nodes with first leaf .
void leaf_checking( objArr &ar ){
 Initialize(leaf_checking);
   int sz;
   if ( ar.size() > 0 ){
      sz = ar.size();
      commonTree *cur_nd;
      for ( int ii = 0 ; ii < sz ; ii++ ) {
          cur_nd = checked_cast(commonTree,ar[ii]);
          if ( cur_nd->get_first() )
             ar[ii] = cur_nd->get_first_leaf();
      }
   }
 return;
}
void leaf_checking ( objArr & ar ) { Initialize ( leaf_checking ) ; int sz ; if ( ar . size ( ) > 0 ) { sz = ar . size ( ) ; commonTree * cur_nd ; for ( int ii = 0 ; ii < sz ; ii ++ ) { cur_nd = checked_cast ( commonTree , ar [ ii ] ) ; if ( cur_nd -> get_first ( ) ) ar [ ii ] = cur_nd -> get_first_leaf ( ) ; } } return ; }
Replace non leaf nodes with first leaf;
Replace non leaf nodes with first leaf ;