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.Routing.TSP/3.3/TSPTour.cs

    r2520 r2526  
    7474    /// Clones the current instance (deep clone).
    7575    /// </summary>
    76     /// <remarks>Uses <see cref="Auxiliary.Clone"/> method of class <see cref="Auxiliary"/> to clone
     76    /// <remarks>Uses <see cref="cloner.Clone"/> method of class <see cref="Auxiliary"/> to clone
    7777    /// the coordinates.</remarks>
    7878    /// <param name="clonedObjects">Dictionary of all already cloned objects. (Needed to avoid cycles.)</param>
    7979    /// <returns>The cloned object as <see cref="TSPTour"/>.</returns>
    80     public override object Clone(IDictionary<Guid, object> clonedObjects) {
    81       TSPTour clone = (TSPTour)base.Clone(clonedObjects);
    82       clone.myCoordinates = (DoubleMatrixData)Auxiliary.Clone(Coordinates, clonedObjects);
     80    public override IItem Clone(ICloner cloner) {
     81      TSPTour clone = (TSPTour)base.Clone(cloner);
     82      clone.myCoordinates = (DoubleMatrixData)cloner.Clone(Coordinates);
    8383      clone.myTour = Tour;
    8484      return clone;
Note: See TracChangeset for help on using the changeset viewer.