Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5429


Ignore:
Timestamp:
02/04/11 11:43:08 (14 years ago)
Author:
gkronber
Message:

Made LaTeX formatter storable. #1152

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Formatters/SymbolicExpressionTreeLatexFormatter.cs

    r5428 r5429  
    3333namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Formatters {
    3434  [Item("LaTeX String Formatter", "Formatter for symbolic expression trees for import into LaTeX documents.")]
     35  [StorableClass]
    3536  public sealed class SymbolicExpressionTreeLatexFormatter : NamedItem, ISymbolicExpressionTreeStringFormatter {
    3637    private List<double> constants;
    3738    private int currentLag;
    3839
     40    [StorableConstructor]
     41    private SymbolicExpressionTreeLatexFormatter(bool deserializing) : base(deserializing) { }
     42    private SymbolicExpressionTreeLatexFormatter(SymbolicExpressionTreeLatexFormatter original, Cloner cloner)
     43      : base(original, cloner) {
     44      constants = new List<double>(original.constants);
     45    }
    3946    public SymbolicExpressionTreeLatexFormatter()
    4047      : base("LaTeX String Formatter", "Formatter for symbolic expression trees for import into LaTeX documents.") {
    4148      constants = new List<double>();
    42     }
    43     private SymbolicExpressionTreeLatexFormatter(SymbolicExpressionTreeLatexFormatter original, Cloner cloner)
    44       : base(original, cloner) {
    45       constants = new List<double>(original.constants);
    4649    }
    4750
Note: See TracChangeset for help on using the changeset viewer.