Free cookie consent management tool by TermsFeed Policy Generator

Changeset 15963 for branches


Ignore:
Timestamp:
06/18/18 14:31:53 (6 years ago)
Author:
bburlacu
Message:

#2886: Add missing storable constructors

Location:
branches/2886_SymRegGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.SymRegGrammarEnumeration/GrammarEnumeration
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2886_SymRegGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.SymRegGrammarEnumeration/GrammarEnumeration/Sentence.cs

    r15960 r15963  
    2424      symbols = s;
    2525    }
     26
     27    [StorableConstructor]
     28    protected SymbolString(bool deserializing) { }
    2629
    2730    protected SymbolString(SymbolString original, Cloner cloner) : base(original, cloner) {
  • branches/2886_SymRegGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.SymRegGrammarEnumeration/GrammarEnumeration/Symbol.cs

    r15960 r15963  
    1010    private readonly int stringRepresentationHash;
    1111
    12     [Storable]
     12    [Storable(AllowOneWay = true)]
    1313    public string StringRepresentation { get; }
    1414
     
    2222      stringRepresentationHash = original.stringRepresentationHash;
    2323    }
     24
     25    [StorableConstructor]
     26    protected Symbol(bool deserializing) { }
    2427
    2528    public override string ToString() {
     
    6669      return new TerminalSymbol(this, cloner);
    6770    }
     71
     72    [StorableConstructor]
     73    protected TerminalSymbol(bool deserializing) : base(deserializing) { }
    6874  }
    6975
     
    7682      return new VariableTerminalSymbol(this, cloner);
    7783    }
     84
     85    [StorableConstructor]
     86    protected VariableTerminalSymbol(bool deserializing) : base(deserializing) { }
    7887  }
    7988
     
    8695      return new NonterminalSymbol(this, cloner);
    8796    }
     97
     98    [StorableConstructor]
     99    protected NonterminalSymbol(bool deserializing) : base(deserializing) { }
    88100  }
    89101
     
    94106
    95107    public Production(IEnumerable<Symbol> symbols) : base(symbols) { }
     108
     109    [StorableConstructor]
     110    protected Production(bool deserializing) { }
    96111
    97112    protected Production(Production original, Cloner cloner) : this(original) {
Note: See TracChangeset for help on using the changeset viewer.