Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/19/10 02:15:10 (15 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • worked on operators and SGA
  • improved performance
Location:
trunk/sources/HeuristicLab.Collections/3.3
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Collections/3.3/ObservableArray.cs

    r2790 r2830  
    6868    public ObservableArray(T[] array) {
    6969      this.array = (T[])array.Clone();
    70       OnCollectionReset(GetIndexedItems(), new IndexedItem<T>[0]);
    7170    }
    7271    public ObservableArray(IEnumerable<T> collection) {
    7372      array = collection.ToArray();
    74       OnCollectionReset(GetIndexedItems(), new IndexedItem<T>[0]);
    7573    }
    7674    #endregion
  • trunk/sources/HeuristicLab.Collections/3.3/ObservableCollection.cs

    r2790 r2830  
    5959    public ObservableCollection(IEnumerable<T> collection) {
    6060      list = new List<T>(collection);
    61       OnItemsAdded(collection);
    6261    }
    6362    #endregion
  • trunk/sources/HeuristicLab.Collections/3.3/ObservableDictionary.cs

    r2790 r2830  
    7979    public ObservableDictionary(IDictionary<TKey, TValue> dictionary) {
    8080      dict = new Dictionary<TKey, TValue>(dictionary);
    81       OnItemsAdded(dictionary);
    8281    }
    8382    public ObservableDictionary(int capacity, IEqualityComparer<TKey> comparer) {
     
    8685    public ObservableDictionary(IDictionary<TKey, TValue> dictionary, IEqualityComparer<TKey> comparer) {
    8786      dict = new Dictionary<TKey, TValue>(dictionary, comparer);
    88       OnItemsAdded(dictionary);
    8987    }
    9088    #endregion
  • trunk/sources/HeuristicLab.Collections/3.3/ObservableKeyedCollection.cs

    r2790 r2830  
    6666      foreach (TItem item in collection)
    6767        dict.Add(GetKeyForItem(item), item);
    68       OnItemsAdded(collection);
    6968    }
    7069    protected ObservableKeyedCollection(int capacity, IEqualityComparer<TKey> comparer) {
     
    7675      foreach (TItem item in collection)
    7776        dict.Add(GetKeyForItem(item), item);
    78       OnItemsAdded(collection);
    7977    }
    8078    #endregion
  • trunk/sources/HeuristicLab.Collections/3.3/ObservableList.cs

    r2790 r2830  
    7373    public ObservableList(IEnumerable<T> collection) {
    7474      list = new List<T>(collection);
    75       OnItemsAdded(GetIndexedItems());
    76       OnItemsAdded(collection);
    7775    }
    7876    #endregion
  • trunk/sources/HeuristicLab.Collections/3.3/ObservableSet.cs

    r2790 r2830  
    5151    public ObservableSet(IEnumerable<T> collection) {
    5252      set = new HashSet<T>(collection);
    53       OnItemsAdded(this);
    5453    }
    5554    public ObservableSet(IEqualityComparer<T> comparer) {
     
    5857    public ObservableSet(IEnumerable<T> collection, IEqualityComparer<T> comparer) {
    5958      set = new HashSet<T>(collection, comparer);
    60       OnItemsAdded(this);
    6159    }
    6260    #endregion
Note: See TracChangeset for help on using the changeset viewer.