model_server/xref/src/XrefQuery.cxx
// Decode links (a bitmap) into individual sub-queries and return the
// union of these queries into rtl_head
Decode links (a bitmap) into individual sub-queries and return the
union of these queries into rtl_head
Decode links ( a bitmap ) into individual sub - queries and return the union of these queries into rtl_head
void XrefQuery::DoQueries(const symbolArr& selected_symbols, 
			  genMask queries, RTLPtr rtl_head)
{
    Initialize(XrefQuery::DoQueries);
    static bool initialized = Init();
    RTLNodePtr	rtl_root = checked_cast (RTLNode, rtl_head->get_root ());
    if (queries.includes ((unsigned) SHOW_REF_FILE))
	queries.add ((unsigned) SHOW_DOCUMENTS);
    rtl_root->clear ();
    symbolSet accum_results;
    for (int i = queries.peek(); i >= 0; i = queries.peek(i))
    {
	symbolSet action_results;
	symbolArr domain = selected_symbols;
	if (!do_1_query(action_results, domain, i)) 
	  return;
	accum_results.insert(action_results);
	if(ParaCancel::is_cancelled())
	    return;
    } 
    rtl_root->rtl_contents() = accum_results;
}
void XrefQuery :: DoQueries ( const symbolArr & selected_symbols , genMask queries , RTLPtr rtl_head ) { Initialize ( XrefQuery :: DoQueries ) ; static bool initialized = Init ( ) ; RTLNodePtr rtl_root = checked_cast ( RTLNode , rtl_head -> get_root ( ) ) ; if ( queries . includes ( ( unsigned ) SHOW_REF_FILE ) ) queries . add ( ( unsigned ) SHOW_DOCUMENTS ) ; rtl_root -> clear ( ) ; symbolSet accum_results ; for ( int i = queries . peek ( ) ; i >= 0 ; i = queries . peek ( i ) ) { symbolSet action_results ; symbolArr domain = selected_symbols ; if ( ! do_1_query ( action_results , domain , i ) ) return ; accum_results . insert ( action_results ) ; if ( ParaCancel :: is_cancelled ( ) ) return ; } rtl_root -> rtl_contents ( ) = accum_results ; }
Decode links (a bitmap) into individual sub-queries and return the
union of these queries into rtl_head
Decode links ( a bitmap ) into individual sub - queries and return the union of these queries into rtl_head
/* for */