Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/10 01:56:04 (14 years ago)
Author:
swagner
Message:

Merged cloning refactoring branch back into trunk (#922)

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Manipulators/MultiPermutationManipulator.cs

    r4373 r4722  
    2323using System.Linq;
    2424using HeuristicLab.Collections;
     25using HeuristicLab.Common;
    2526using HeuristicLab.Core;
    2627using HeuristicLab.Operators;
     
    4647
    4748    [StorableConstructor]
    48     private MultiPermutationManipulator(bool deserializing) : base(deserializing) { }
     49    protected MultiPermutationManipulator(bool deserializing) : base(deserializing) { }
     50    protected MultiPermutationManipulator(MultiPermutationManipulator original, Cloner cloner) : base(original, cloner) { }
    4951    public MultiPermutationManipulator()
    5052      : base() {
     
    5557          Operators.Add((IPermutationManipulator)Activator.CreateInstance(type), true);
    5658      }
     59    }
     60
     61    public override IDeepCloneable Clone(Cloner cloner) {
     62      return new MultiPermutationManipulator(this, cloner);
    5763    }
    5864
Note: See TracChangeset for help on using the changeset viewer.