Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/03/12 15:26:04 (12 years ago)
Author:
bburlacu
Message:

#1772: Introduced base class and interface for tracing operators. Introduced SymbolicExpressionTreeNodeComparer interface to be implemented by node matching operators. Fixed bug in the TracingSymbolicExpressionTreeManipulator where nodes modified by the Full- and OnePoint tree shakers were not correctly detected. The SymbolicExpressionTreeNodeSimilarityComparer is now injected in the tracing genetic operators as a parameter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/GenericWrapper.cs

    r8213 r8557  
    66  [Item("Generic wrapper", "Wrapper class for non-item HeuristicLab objects")]
    77  [StorableClass]
    8   public class GenericWrapper<T> : NamedItem where T : class {
     8  public class GenericWrapper<T> : NamedItem where T : class, IDeepCloneable {
     9    [Storable]
    910    public T Content { get; private set; }
    10 
    11     private GenericWrapper() {
    12     }
    1311
    1412    public GenericWrapper(T content) {
     
    1715
    1816    [StorableConstructor]
    19     protected GenericWrapper(bool serializing)
    20       : base(serializing) {
    21     }
     17    private GenericWrapper(bool serializing) : base(serializing) { }
    2218
    2319    private GenericWrapper(GenericWrapper<T> original, Cloner cloner)
    2420      : base(original, cloner) {
     21      this.Content = cloner.Clone(Content);
    2522    }
    2623
Note: See TracChangeset for help on using the changeset viewer.