Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/13/10 06:41:56 (14 years ago)
Author:
swagner
Message:

Implemented ReadOnlyView property for items (#969).

Location:
trunk/sources/HeuristicLab.Data/3.3
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data/3.3/BoolArray.cs

    r3160 r3317  
    3535      BoolArray clone = new BoolArray(array);
    3636      cloner.RegisterClonedObject(this, clone);
     37      clone.ReadOnlyView = ReadOnlyView;
    3738      return clone;
    3839    }
  • trunk/sources/HeuristicLab.Data/3.3/BoolMatrix.cs

    r3310 r3317  
    3939    public override IDeepCloneable Clone(Cloner cloner) {
    4040      BoolMatrix clone = new BoolMatrix(matrix);
     41      cloner.RegisterClonedObject(this, clone);
     42      clone.ReadOnlyView = ReadOnlyView;
    4143      clone.ColumnNames = new List<string>(ColumnNames);
    4244      clone.RowNames = new List<string>(RowNames);
    43       cloner.RegisterClonedObject(this, clone);
    4445      return clone;
    4546    }
  • trunk/sources/HeuristicLab.Data/3.3/BoolValue.cs

    r3306 r3317  
    4040      BoolValue clone = new BoolValue(value);
    4141      cloner.RegisterClonedObject(this, clone);
     42      clone.ReadOnlyView = ReadOnlyView;
    4243      return clone;
    4344    }
  • trunk/sources/HeuristicLab.Data/3.3/Comparison.cs

    r3306 r3317  
    3939      Comparison clone = new Comparison(value);
    4040      cloner.RegisterClonedObject(this, clone);
     41      clone.ReadOnlyView = ReadOnlyView;
    4142      return clone;
    4243    }
  • trunk/sources/HeuristicLab.Data/3.3/DateTimeValue.cs

    r3160 r3317  
    3434      DateTimeValue clone = new DateTimeValue(value);
    3535      cloner.RegisterClonedObject(this, clone);
     36      clone.ReadOnlyView = ReadOnlyView;
    3637      return clone;
    3738    }
  • trunk/sources/HeuristicLab.Data/3.3/DoubleArray.cs

    r3160 r3317  
    3535      DoubleArray clone = new DoubleArray(array);
    3636      cloner.RegisterClonedObject(this, clone);
     37      clone.ReadOnlyView = ReadOnlyView;
    3738      return clone;
    3839    }
  • trunk/sources/HeuristicLab.Data/3.3/DoubleMatrix.cs

    r3310 r3317  
    3939    public override IDeepCloneable Clone(Cloner cloner) {
    4040      DoubleMatrix clone = new DoubleMatrix(matrix);
     41      cloner.RegisterClonedObject(this, clone);
     42      clone.ReadOnlyView = ReadOnlyView;
    4143      clone.ColumnNames = new List<string>(ColumnNames);
    4244      clone.RowNames = new List<string>(RowNames);
    43       cloner.RegisterClonedObject(this, clone);
    4445      return clone;
    4546    }
  • trunk/sources/HeuristicLab.Data/3.3/DoubleValue.cs

    r3306 r3317  
    4040      DoubleValue clone = new DoubleValue(value);
    4141      cloner.RegisterClonedObject(this, clone);
     42      clone.ReadOnlyView = ReadOnlyView;
    4243      return clone;
    4344    }
  • trunk/sources/HeuristicLab.Data/3.3/IStringConvertibleArray.cs

    r3048 r3317  
    2525namespace HeuristicLab.Data {
    2626  public interface IStringConvertibleArray {
     27    bool ReadOnlyView { get; set; }
    2728    int Length { get; set; }
    2829
     
    3132    bool SetValue(string value, int index);
    3233
     34    event EventHandler ReadOnlyViewChanged;
    3335    event EventHandler<EventArgs<int>> ItemChanged;
    3436    event EventHandler Reset;
  • trunk/sources/HeuristicLab.Data/3.3/IStringConvertibleMatrix.cs

    r3310 r3317  
    2626namespace HeuristicLab.Data {
    2727  public interface IStringConvertibleMatrix {
     28    bool ReadOnlyView { get; set; }
    2829    int Rows { get; set; }
    2930    int Columns { get; set; }
     
    3738    bool SetValue(string value, int rowIndex, int columnIndex);
    3839
     40    event EventHandler ReadOnlyViewChanged;
    3941    event EventHandler<EventArgs<int, int>> ItemChanged;
    4042    event EventHandler Reset;
  • trunk/sources/HeuristicLab.Data/3.3/IStringConvertibleValue.cs

    r3048 r3317  
    2424namespace HeuristicLab.Data {
    2525  public interface IStringConvertibleValue {
     26    bool ReadOnlyView { get; set; }
     27
    2628    bool Validate(string value, out string errorMessage);
    2729    string GetValue();
    2830    bool SetValue(string value);
    2931
     32    event EventHandler ReadOnlyViewChanged;
    3033    event EventHandler ValueChanged;
    3134  }
  • trunk/sources/HeuristicLab.Data/3.3/IntArray.cs

    r3160 r3317  
    3535      IntArray clone = new IntArray(array);
    3636      cloner.RegisterClonedObject(this, clone);
     37      clone.ReadOnlyView = ReadOnlyView;
    3738      return clone;
    3839    }
  • trunk/sources/HeuristicLab.Data/3.3/IntMatrix.cs

    r3310 r3317  
    3939    public override IDeepCloneable Clone(Cloner cloner) {
    4040      IntMatrix clone = new IntMatrix(matrix);
     41      cloner.RegisterClonedObject(this, clone);
     42      clone.ReadOnlyView = ReadOnlyView;
    4143      clone.ColumnNames = new List<string>(ColumnNames);
    4244      clone.RowNames = new List<string>(RowNames);
    43       cloner.RegisterClonedObject(this, clone);
    4445      return clone;
    4546    }
  • trunk/sources/HeuristicLab.Data/3.3/IntValue.cs

    r3306 r3317  
    4040      IntValue clone = new IntValue(value);
    4141      cloner.RegisterClonedObject(this, clone);
     42      clone.ReadOnlyView = ReadOnlyView;
    4243      return clone;
    4344    }
  • trunk/sources/HeuristicLab.Data/3.3/PercentValue.cs

    r3160 r3317  
    3434      PercentValue clone = new PercentValue(value);
    3535      cloner.RegisterClonedObject(this, clone);
     36      clone.ReadOnlyView = ReadOnlyView;
    3637      return clone;
    3738    }
  • trunk/sources/HeuristicLab.Data/3.3/StringArray.cs

    r3306 r3317  
    8080      StringArray clone = new StringArray();
    8181      cloner.RegisterClonedObject(this, clone);
     82      clone.ReadOnlyView = ReadOnlyView;
    8283      clone.array = (string[])array.Clone();
    8384      return clone;
  • trunk/sources/HeuristicLab.Data/3.3/StringMatrix.cs

    r3310 r3317  
    147147      StringMatrix clone = new StringMatrix();
    148148      cloner.RegisterClonedObject(this, clone);
     149      clone.ReadOnlyView = ReadOnlyView;
    149150      clone.matrix = (string[,])matrix.Clone();
    150151      clone.columnNames = new List<string>(columnNames);
  • trunk/sources/HeuristicLab.Data/3.3/StringValue.cs

    r3306 r3317  
    5757      StringValue clone = new StringValue(value);
    5858      cloner.RegisterClonedObject(this, clone);
     59      clone.ReadOnlyView = ReadOnlyView;
    5960      return clone;
    6061    }
  • trunk/sources/HeuristicLab.Data/3.3/TimeSpanValue.cs

    r3160 r3317  
    3535      TimeSpanValue clone = new TimeSpanValue(value);
    3636      cloner.RegisterClonedObject(this, clone);
     37      clone.ReadOnlyView = ReadOnlyView;
    3738      return clone;
    3839    }
Note: See TracChangeset for help on using the changeset viewer.