public CollectionTraceWithoutHeap(Func <int, int, bool> tCompare, Func <int, int> update) { TimeLessThan = tCompare; UpdateTime = update; increments = new VariableLengthHeap <CollectionTraceWithoutHeapIncrement>(32); }
public CollectionTraceWithHeap(Func <int, int, bool> tCompare, Func <int, int> update, int numShards) { TimeLessThan = tCompare; UpdateTime = update; this.numShards = numShards; records = new VariableLengthHeap <Weighted <S> >(32); increments = new VariableLengthHeap <CollectionTraceWithHeapIncrement>(32); }
public CollectionTraceWithAggregation(Func <int, int, bool> tCompare, Func <int, int> update, Func <Int64, S, S, S> a, Func <S, bool> isZ) { TimeLessThan = tCompare; UpdateTime = update; axpy = a; isZero = isZ; increments = new VariableLengthHeap <CollectionTraceWithAggregationIncrement <S> >(32); }