Changeset 5275 for branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/BasicExpressionGrammar.cs
- Timestamp:
- 01/11/11 15:03:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/BasicExpressionGrammar.cs
r4193 r5275 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 27 using HeuristicLab.Problems.DataAnalysis.Symbolic.Symbols; 28 using HeuristicLab.Common; 28 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 29 30 [StorableClass] … … 33 34 private HeuristicLab.Problems.DataAnalysis.Symbolic.Symbols.Variable variableSymbol; 34 35 36 [StorableConstructor] 37 protected BasicExpressionGrammar(bool deserializing) : base(deserializing) { } 38 protected BasicExpressionGrammar(BasicExpressionGrammar original, Cloner cloner) 39 : base(original, cloner) { 40 foreach (var symb in Symbols) { 41 var varSym = symb as HeuristicLab.Problems.DataAnalysis.Symbolic.Symbols.Variable; 42 if (varSym != null) this.variableSymbol = varSym; 43 break; 44 } 45 } 35 46 public BasicExpressionGrammar() 36 47 : base() { … … 38 49 } 39 50 40 [StorableConstructor] 41 protected BasicExpressionGrammar(bool deserializing) : base(deserializing) { } 51 public override IDeepCloneable Clone(Cloner cloner) { 52 return new BasicExpressionGrammar(this, cloner); 53 } 42 54 43 55 private void Initialize() {
Note: See TracChangeset
for help on using the changeset viewer.