- Timestamp:
- 11/06/10 01:56:04 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/CloningRefactoring (added) merged: 4656-4693,4696-4697,4711-4714,4718-4719
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Permutation.cs
r4477 r4722 38 38 } 39 39 40 public Permutation() : base() { 41 permutationType = PermutationTypes.RelativeUndirected; 40 [StorableConstructor] 41 protected Permutation(bool deserializing) : base(deserializing) { } 42 protected Permutation(Permutation original, Cloner cloner) 43 : base(original, cloner) { 44 this.permutationType = original.permutationType; 42 45 } 46 public Permutation() : this(PermutationTypes.RelativeUndirected) { } 43 47 public Permutation(PermutationTypes type) : base() { 44 48 permutationType = type; 45 49 } 46 47 50 public Permutation(PermutationTypes type, int length) 48 51 : base(length) { … … 64 67 65 68 public override IDeepCloneable Clone(Cloner cloner) { 66 Permutation clone = new Permutation(permutationType, array); 67 cloner.RegisterClonedObject(this, clone); 68 clone.readOnly = readOnly; 69 return clone; 69 return new Permutation(this, cloner); 70 70 } 71 71
Note: See TracChangeset
for help on using the changeset viewer.