Changeset 4682 for branches/CloningRefactoring/HeuristicLab.Problems.ExternalEvaluation.GP/3.3/Symbols/ConstantTreeNode.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/ConstantTreeNode.cs
r4089 r4682 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; … … 39 40 } 40 41 41 private ConstantTreeNode() : base() { } 42 43 // copy constructor 44 private ConstantTreeNode(ConstantTreeNode original) 45 : base(original) { 46 constantValue = original.constantValue; 42 [StorableConstructor] 43 private ConstantTreeNode(bool deserializing) : base(deserializing) { } 44 private ConstantTreeNode(ConstantTreeNode original, Cloner cloner) 45 : base(original, cloner) { 46 } 47 public override IDeepCloneable Clone(Cloner cloner) { 48 return new ConstantTreeNode(this, cloner); 47 49 } 48 50 … … 67 69 } 68 70 69 public override object Clone() {70 return new ConstantTreeNode(this);71 }72 73 71 public override string ToString() { 74 72 return ";" + constantValue.ToString("E4");
Note: See TracChangeset
for help on using the changeset viewer.