- Timestamp:
- 10/29/10 15:59:12 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Data/3.3/BoolMatrix.cs
r3431 r4662 30 30 [StorableClass] 31 31 public class BoolMatrix : ValueTypeMatrix<bool>, IStringConvertibleMatrix { 32 [StorableConstructor] 33 protected BoolMatrix(bool deserializing) : base(deserializing) { } 34 protected BoolMatrix(BoolMatrix original, Cloner cloner) 35 : base(original, cloner) { 36 } 32 37 public BoolMatrix() : base() { } 33 38 public BoolMatrix(int rows, int columns) : base(rows, columns) { } … … 39 44 40 45 public override IDeepCloneable Clone(Cloner cloner) { 41 BoolMatrix clone = new BoolMatrix(); 42 cloner.RegisterClonedObject(this, clone); 43 clone.matrix = (bool[,])matrix.Clone(); 44 clone.columnNames = new List<string>(columnNames); 45 clone.rowNames = new List<string>(rowNames); 46 clone.sortableView = sortableView; 47 clone.readOnly = readOnly; 48 return clone; 46 return new BoolMatrix(this, cloner); 49 47 } 50 48
Note: See TracChangeset
for help on using the changeset viewer.