public void InitializeTest() { // Create list and original data. _list = new LazyOperationsList <int>(); _originalData = new List <int> { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Add all data to list. foreach (var d in _originalData) { _list.Add(d); } // Create ranges on which operations will be applied. _ranges = new List <Interval <int> > { new Interval <int>(0, 1), new Interval <int>(3, 4), new Interval <int>(1, 3), // Overlaps two. new Interval <int>(7, 8), new Interval <int>(8, 9), // Overlap right. new Interval <int>(6, 7), // Overlap left. new Interval <int>(5, 5), // Bordering. new Interval <int>(1, 9) // Lots of intersections. }; // Create operation which is done for every range. _operation = i => i + 1; }
public void InitializeTest() { // Create list and original data. _list = new LazyOperationsList<int>(); _originalData = new List<int> { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Add all data to list. foreach ( var d in _originalData ) { _list.Add( d ); } // Create ranges on which operations will be applied. _ranges = new List<Interval<int>> { new Interval<int>( 0, 1 ), new Interval<int>( 3, 4 ), new Interval<int>( 1, 3 ), // Overlaps two. new Interval<int>( 7, 8 ), new Interval<int>( 8, 9 ), // Overlap right. new Interval<int>( 6, 7 ), // Overlap left. new Interval<int>( 5, 5 ), // Bordering. new Interval<int>( 1, 9 ) // Lots of intersections. }; // Create operation which is done for every range. _operation = i => i + 1; }
public Enumerator(LazyOperationsList <KeyPoint> data) { _data = data; }