public static IntRangeList operator -(IntRangeList list1, IntRangeList list2) { var newList = new IntRangeList(list1); newList.Subtract(list2); return(newList); }
private void Add(IntRangeList rangeList) { foreach (var range in rangeList._ranges) { Add(range); } }
public static IntRangeList operator -(IntRangeList list, Tuple <int, int> range) { var newList = new IntRangeList(list); newList.Subtract(range); return(newList); }
private void Subtract(IntRangeList rangeList) { foreach (var range in rangeList._ranges) { Subtract(range); } }
public static IntRangeList operator +(IntRangeList list1, IntRangeList list2) { var newList = new IntRangeList(list1); newList.Add(list2); return(newList); }
public static void Add(this Dictionary<int, IntRangeList> rangeLists0, Dictionary<int, IntRangeList> rangeLists1) { foreach (int k in rangeLists1.Keys) { if (!rangeLists0.ContainsKey(k)) { rangeLists0[k] = new IntRangeList(); } rangeLists0[k] += rangeLists1[k]; } }
public static void Add(this Dictionary <int, IntRangeList> rangeLists0, Dictionary <int, IntRangeList> rangeLists1) { foreach (int k in rangeLists1.Keys) { if (!rangeLists0.ContainsKey(k)) { rangeLists0[k] = new IntRangeList(); } rangeLists0[k] += rangeLists1[k]; } }
private IntRangeList(IntRangeList list) { _ranges = new List <Tuple <int, int> >(list._ranges); }
public static IntRangeList operator -(IntRangeList list, Tuple<int, int> range) { var newList = new IntRangeList(list); newList.Subtract(range); return newList; }
public static IntRangeList operator -(IntRangeList list1, IntRangeList list2) { var newList = new IntRangeList(list1); newList.Subtract(list2); return newList; }
public static IntRangeList operator +(IntRangeList list1, IntRangeList list2) { var newList = new IntRangeList(list1); newList.Add(list2); return newList; }
private IntRangeList(IntRangeList list) { _ranges = new List<Tuple<int, int>>(list._ranges); }