Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/09 16:43:34 (14 years ago)
Author:
swagner
Message:

Refactored cloning (#806)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators/3.3/CombinedOperator.cs

    r2520 r2526  
    8787    /// (System.Collections.Generic.IDictionary<System.Guid, object>)"/>
    8888    /// of base class <see cref="DelegatingOperator"/>.<br/>
    89     /// Deep clone through <see cref="Auxiliary.Clone"/> method of helper class
     89    /// Deep clone through <see cref="cloner.Clone"/> method of helper class
    9090    /// <see cref="Auxiliary"/>.</remarks>
    9191    /// <param name="clonedObjects">Dictionary of all already cloned objects. (Needed to avoid cycles.)</param>
    9292    /// <returns>The cloned object as <see cref="CombinedOperator"/>.</returns>
    93     public override object Clone(IDictionary<Guid, object> clonedObjects) {
    94       CombinedOperator clone = (CombinedOperator)base.Clone(clonedObjects);
     93    public override IItem Clone(ICloner cloner) {
     94      CombinedOperator clone = (CombinedOperator)base.Clone(cloner);
    9595      clone.myDescription = Description;
    96       clone.myOperatorGraph = (IOperatorGraph)Auxiliary.Clone(OperatorGraph, clonedObjects);
     96      clone.myOperatorGraph = (IOperatorGraph)cloner.Clone(OperatorGraph);
    9797      return clone;
    9898    }
Note: See TracChangeset for help on using the changeset viewer.