Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/10 01:56:04 (14 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.ArtificialAnt/3.3/Symbols/IfFoodAhead.cs

    r4477 r4722  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols;
     
    2728  [Item("IfFoodAhead", "Represents the if-food-ahead symbol in a artificial ant expression.")]
    2829  public sealed class IfFoodAhead : Symbol {
     30    [StorableConstructor]
     31    private IfFoodAhead(bool deserializing) : base(deserializing) { }
     32    private IfFoodAhead(IfFoodAhead original, Cloner cloner) : base(original, cloner) { }
     33    public override IDeepCloneable Clone(Cloner cloner) {
     34      return new IfFoodAhead(this, cloner);
     35    }
     36
    2937    public IfFoodAhead() : base("IfFoodAhead", "Represents the if-food-ahead symbol in a artificial ant expression.") { }
    3038  }
Note: See TracChangeset for help on using the changeset viewer.