model_server/xref/src/xrefSymbol.h.cxx
// get all object referenced in this 
get all object referenced in this
get all object referenced in this
int xrefSymbol::get_refs(symbolArr& sa, ddKind k)
{
  Initialize(xrefSymbol::get_refs);
  int i = sa.size();
  ddKind knd = get_kind();
  if (k == 0) {
    if (knd == DD_MODULE) 
      return get_link(file_ref, sa) - i; 
    else
      return get_link(is_using, sa) - i;
  }
  else {
    symbolArr nsa;
    if (knd == DD_MODULE) 
      get_link(file_ref, nsa); 
    else
      get_link(is_using, nsa) ;
    int cnt = 0;
    const int sz = nsa.size();
    for (int i = 0; i < sz; ++i){
      symbolPtr & sym = nsa[i];
      if (sym->get_kind() == k) {
	sa.insert_last(sym);
	cnt++;
      }	
    }
    return cnt;
  }
}
int xrefSymbol :: get_refs ( symbolArr & sa , ddKind k ) { Initialize ( xrefSymbol :: get_refs ) ; int i = sa . size ( ) ; ddKind knd = get_kind ( ) ; if ( k == 0 ) { if ( knd == DD_MODULE ) return get_link ( file_ref , sa ) - i ; else return get_link ( is_using , sa ) - i ; } else { symbolArr nsa ; if ( knd == DD_MODULE ) get_link ( file_ref , nsa ) ; else get_link ( is_using , nsa ) ; int cnt = 0 ; const int sz = nsa . size ( ) ; for ( int i = 0 ; i < sz ; ++ i ) { symbolPtr & sym = nsa [ i ] ; if ( sym -> get_kind ( ) == k ) { sa . insert_last ( sym ) ; cnt ++ ; } } return cnt ; } }
get all object referenced in this
get all object referenced in this