Example #1
0
int trpgRangeTable::AddRange(trpgRange &range)
{
	int handle = range.GetHandle();
	if(handle==-1) {
		handle = rangeMap.size();
	}
	rangeMap[handle] = range;
	return handle;

}
int trpgRangeTable::AddRange(trpgRange &range)
{
    int range_handle = range.GetHandle();
    if(range_handle==-1) {
        range_handle = rangeMap.size();
    }
    rangeMap[range_handle] = range;
    return range_handle;

}