MobilityDB 1.1

◆ skiplist_splice()

void skiplist_splice ( SkipList list,
void **  values,
int  count,
datum_func2  func,
bool  crossings 
)

Splice the skiplist with the array of values using the aggregation function.

Note
The complexity of this function is
  • average: O(count*log(n)) (unless I'm mistaken)
  • worst case: O(n+count*log(n)) (when period spans the whole list so everything has to be deleted)
Parameters
[in,out]listSkiplist
[in]valuesArray of values
[in]countNumber of elements in the array
[in]funcFunction
[in]crossingsTrue if turning points are added in the segments