Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/10 01:56:04 (13 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.Problems.ExternalEvaluation.GP/3.3/Interpretation/TreeInterpreter.cs

    r4117 r4722  
    2222using System;
    2323using System.Collections.Generic;
     24using HeuristicLab.Common;
    2425using HeuristicLab.Core;
    2526using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
     
    9293    private Instruction[] code;
    9394    private int pc;
    94    
     95
    9596    public override bool CanChangeName {
    9697      get { return false; }
     
    100101    }
    101102
    102     public TreeInterpreter()
    103       : base() {
    104     }
     103
     104    [StorableConstructor]
     105    protected TreeInterpreter(bool deserializing) : base(deserializing) { }
     106    protected TreeInterpreter(TreeInterpreter original, Cloner cloner) : base(original, cloner) { }
     107    public override IDeepCloneable Clone(Cloner cloner) {
     108      return new TreeInterpreter(this, cloner);
     109    }
     110    public TreeInterpreter() : base() { }
    105111
    106112    public void Prepare(SymbolicExpressionTree tree) {
Note: See TracChangeset for help on using the changeset viewer.