Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4711


Ignore:
Timestamp:
11/03/10 01:32:32 (14 years ago)
Author:
mkommend
Message:

Corrected some cloning errors in the Core plugin (ticket #922).

Location:
branches/CloningRefactoring/HeuristicLab.Core/3.3/Collections
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Core/3.3/Collections/ConstraintCollection.cs

    r4668 r4711  
    3131    protected ConstraintCollection(bool deserializing) : base(deserializing) { }
    3232    protected ConstraintCollection(ConstraintCollection original, Cloner cloner) : base(original, cloner) { }
     33    public override IDeepCloneable Clone(Cloner cloner) { return new ConstraintCollection(this, cloner); }
    3334    public ConstraintCollection() : base() { }
    3435    public ConstraintCollection(int capacity) : base(capacity) { }
  • branches/CloningRefactoring/HeuristicLab.Core/3.3/Collections/OperatorCollection.cs

    r4668 r4711  
    3131    protected OperatorCollection(bool deserializing) : base(deserializing) { }
    3232    protected OperatorCollection(OperatorCollection original, Cloner cloner) : base(original, cloner) { }
     33    public override IDeepCloneable Clone(Cloner cloner) { return new OperatorCollection(this, cloner); }
    3334    public OperatorCollection() : base() { }
    3435    public OperatorCollection(IEnumerable<IOperator> collection) : base(collection) { }
  • branches/CloningRefactoring/HeuristicLab.Core/3.3/Collections/OperatorList.cs

    r4668 r4711  
    3131    protected OperatorList(bool deserializing) : base(deserializing) { }
    3232    protected OperatorList(OperatorList original, Cloner cloner) : base(original, cloner) { }
     33    public override IDeepCloneable Clone(Cloner cloner) { return new OperatorList(this, cloner); }
    3334    public OperatorList() : base() { }
    3435    public OperatorList(int capacity) : base(capacity) { }
  • branches/CloningRefactoring/HeuristicLab.Core/3.3/Collections/OperatorSet.cs

    r4668 r4711  
    3131    protected OperatorSet(bool deserializing) : base(deserializing) { }
    3232    protected OperatorSet(OperatorSet original, Cloner cloner) : base(original, cloner) { }
     33    public override IDeepCloneable Clone(Cloner cloner) { return new OperatorSet(this, cloner); }
    3334    public OperatorSet() : base() { }
    3435    public OperatorSet(IEnumerable<IOperator> collection) : base(collection) { }
  • branches/CloningRefactoring/HeuristicLab.Core/3.3/Collections/ParameterCollection.cs

    r4668 r4711  
    3131    protected ParameterCollection(bool deserializing) : base(deserializing) { }
    3232    protected ParameterCollection(ParameterCollection original, Cloner cloner) : base(original, cloner) { }
     33    public override IDeepCloneable Clone(Cloner cloner) { return new ParameterCollection(this, cloner); }
     34
    3335    public ParameterCollection() : base() { }
    3436    public ParameterCollection(int capacity) : base(capacity) { }
  • branches/CloningRefactoring/HeuristicLab.Core/3.3/Collections/ValueParameterCollection.cs

    r4668 r4711  
    3131    protected ValueParameterCollection(bool deserializing) : base(deserializing) { }
    3232    protected ValueParameterCollection(ValueParameterCollection original, Cloner cloner) : base(original, cloner) { }
     33    public override IDeepCloneable Clone(Cloner cloner) { return new ValueParameterCollection(this, cloner); }
     34
    3335    public ValueParameterCollection() : base() { }
    3436    public ValueParameterCollection(int capacity) : base(capacity) { }
  • branches/CloningRefactoring/HeuristicLab.Core/3.3/Collections/VariableCollection.cs

    r4668 r4711  
    3030    [StorableConstructor]
    3131    private VariableCollection(bool deserializing) : base(deserializing) { }
    32     private VariableCollection(VariableCollection original, Cloner cloner)
    33       : base(original, cloner) {
    34       foreach (string key in original.dict.Keys)
    35         dict.Add(key, cloner.Clone(original.dict[key]));
    36       RegisterItemEvents(this);
    37     }
     32    private VariableCollection(VariableCollection original, Cloner cloner) : base(original, cloner) { }
    3833    public VariableCollection() : base() { }
    3934    public VariableCollection(int capacity) : base(capacity) { }
Note: See TracChangeset for help on using the changeset viewer.