model_server/xref/src/xrefSymbol.h.cxx
// find the count'th  link matching the specified linkType
//    (i.e. if count==0, return the first one found)
// return -1 if not found
find the count'th  link matching the specified linkType

return -1 if not found
find the count ' th link matching the specified linkType return - 1 if not found
long xrefSymbol::get_link_offset(linkType lt, int count, XrefTable* Xr)
{
  Initialize(xrefSymbol::get_link_offset);
  uint s_ind = get_symbol_index();
  Link* lnk = get_start_link(s_ind, Xr);	
  while (lnk && !last_link(lnk)) {
    if (lnk->lt() == lt)
      if (0==(count--)) return ((long) lnk->get_index());
    lnk = get_next_link(lnk, s_ind, Xr);
  }
  return -1;
}
long xrefSymbol :: get_link_offset ( linkType lt , int count , XrefTable * Xr ) { Initialize ( xrefSymbol :: get_link_offset ) ; uint s_ind = get_symbol_index ( ) ; Link * lnk = get_start_link ( s_ind , Xr ) ; while ( lnk && ! last_link ( lnk ) ) { if ( lnk -> lt ( ) == lt ) if ( 0 == ( count -- ) ) return ( ( long ) lnk -> get_index ( ) ) ; lnk = get_next_link ( lnk , s_ind , Xr ) ; } return -1 ; }
find the count'th  link matching the specified linkType
(i.e.
find the count ' th link matching the specified linkType ( i . e .