Exemplo n.º 1
0
        public CollectionTraceWithoutHeap(Func <int, int, bool> tCompare, Func <int, int> update)
        {
            TimeLessThan = tCompare;
            UpdateTime   = update;

            increments = new VariableLengthHeap <CollectionTraceWithoutHeapIncrement>(32);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }