Changeset 3430 for trunk/sources/HeuristicLab.Data/3.3/BoolMatrix.cs
- Timestamp:
- 04/20/10 02:02:39 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data/3.3/BoolMatrix.cs
r3376 r3430 30 30 [StorableClass] 31 31 public class BoolMatrix : ValueTypeMatrix<bool>, IStringConvertibleMatrix { 32 32 public BoolMatrix() : base() { } 33 33 public BoolMatrix(int rows, int columns) : base(rows, columns) { } 34 34 public BoolMatrix(int rows, int columns, IEnumerable<string> columnNames) : base(rows, columns, columnNames) { } … … 39 39 40 40 public override IDeepCloneable Clone(Cloner cloner) { 41 BoolMatrix clone = new BoolMatrix( matrix);41 BoolMatrix clone = new BoolMatrix(); 42 42 cloner.RegisterClonedObject(this, clone); 43 43 clone.ReadOnlyView = ReadOnlyView; 44 clone.ColumnNames = new List<string>(ColumnNames); 45 clone.RowNames = new List<string>(RowNames); 44 clone.matrix = (bool[,])matrix.Clone(); 45 clone.columnNames = new List<string>(columnNames); 46 clone.rowNames = new List<string>(rowNames); 47 clone.sortableView = sortableView; 48 clone.readOnly = readOnly; 46 49 return clone; 47 50 } … … 82 85 set { Columns = value; } 83 86 } 84 IEnumerable<string> IStringConvertibleMatrix.ColumnNames {85 get { return this.ColumnNames; }86 set { this.ColumnNames = value; }87 }88 IEnumerable<string> IStringConvertibleMatrix.RowNames {89 get { return this.RowNames; }90 set { this.RowNames = value; }91 }92 bool IStringConvertibleMatrix.SortableView {93 get { return this.SortableView; }94 set { this.SortableView = value; }95 }96 87 bool IStringConvertibleMatrix.Validate(string value, out string errorMessage) { 97 88 return Validate(value, out errorMessage);
Note: See TracChangeset
for help on using the changeset viewer.