model_server/rtl/src/RTL.h.cxx
// return an array of integers that sort the given RTL.
// Caller is responsible for deleting the array.
return an array of integers that sort the given RTL.
Caller is responsible for deleting the array.
return an array of integers that sort the given RTL . Caller is responsible for deleting the array .
int* rtl_sort_indices(RTLNodePtr rtl_node)
{
    rtl_init_sort(rtl_node);
    const int count = rtl_sort_array->size();
    if(count == 0)
	return NULL;
    int* indices = new int[count];
    for(int i = 0; i < count; ++i)
	indices[i] = i;
    if(count > 1)
	OSapi_qsort(indices, count, sizeof(int), rtl_compare_indices);
    return indices;
}
int * rtl_sort_indices ( RTLNodePtr rtl_node ) { rtl_init_sort ( rtl_node ) ; const int count = rtl_sort_array -> size ( ) ; if ( count == 0 ) return NULL ; int * indices = new int [ count ] ; for ( int i = 0 ; i < count ; ++ i ) indices [ i ] = i ; if ( count > 1 ) OSapi_qsort ( indices , count , sizeof ( int ) , rtl_compare_indices ) ; return indices ; }
return an array of integers that sort the given RTL.
return an array of integers that sort the given RTL .