Exemplo n.º 1
0
        public void Setup()
        {
            var dummy = new TPayload();

            _toBeDeleted = new MappedInterval <TPayload> [Count];
            DataGeneration.Fill(DeletionPattern, Overlapping.Yes, dummy, _toBeDeleted);
        }
Exemplo n.º 2
0
        public void Setup()
        {
            _input = new MappedInterval <TPayload> [Count];
            var mm = DataGeneration.Fill(InputSorting, InputOverlapping, new TPayload(), _input);

            _min = mm.Item1 - Nudge(mm.Item1);
            _max = mm.Item2 + Nudge(mm.Item2);
        }
Exemplo n.º 3
0
        protected override void AfterCollectionCreation()
        {
            var dummy = new TPayload();
            var box   = new MappedInterval <TPayload> [1];

            switch (InitialState)
            {
            case PreDeleteState.OneBigInterval:
                box[0] = new MappedInterval <TPayload>(0, long.MaxValue, dummy);
                Collection.Put(box);
                break;

            case PreDeleteState.LotsOfSmallIntervals:
            case PreDeleteState.Random:
                var inputs  = new MappedInterval <TPayload> [Count];
                var sorting = InitialState == PreDeleteState.Random ? Sorting.Random : Sorting.Ascending;
                DataGeneration.Fill(sorting, Overlapping.No, dummy, inputs);
                Collection.Put(inputs);
                break;
            }

            base.AfterCollectionCreation();
        }
Exemplo n.º 4
0
 public void Setup()
 {
     _input = new MappedInterval <TPayload> [Count];
     DataGeneration.Fill(InputSorting, InputOverlapping, new TPayload(), _input);
 }