Changeset 4682 for branches/CloningRefactoring/HeuristicLab.Problems.ExternalEvaluation.GP/3.3/Symbols/VariableTreeNode.cs
- Timestamp:
- 10/29/10 19:47:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Problems.ExternalEvaluation.GP/3.3/Symbols/VariableTreeNode.cs
r4089 r4682 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; … … 47 48 private VariableTreeNode() { } 48 49 49 // copy constructor 50 private VariableTreeNode(VariableTreeNode original) 51 : base(original) { 50 [StorableConstructor] 51 private VariableTreeNode(bool deserializing) : base(deserializing) { } 52 private VariableTreeNode(VariableTreeNode original, Cloner cloner) 53 : base(original, cloner) { 52 54 weight = original.weight; 53 55 variableName = original.variableName; 56 } 57 public override IDeepCloneable Clone(Cloner cloner) { 58 return new VariableTreeNode(this, cloner); 54 59 } 55 60 … … 57 62 58 63 public override bool HasLocalParameters { 59 get { 60 return true; 61 } 64 get { return true; } 62 65 } 63 66 … … 77 80 } 78 81 79 80 public override object Clone() {81 return new VariableTreeNode(this);82 }83 84 82 public override string ToString() { 85 83 return ";" + variableName + ";" + weight.ToString("E4");
Note: See TracChangeset
for help on using the changeset viewer.