Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/30/18 14:18:09 (6 years ago)
Author:
mkommend
Message:

#2939: Added utility methods GetRow and ClearValues in ModifiableDataset.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.DataAnalysis/3.4/ModifiableDataset.cs

    r16118 r16120  
    5555
    5656
     57    public IEnumerable<object> GetRow(int row) {
     58      return variableValues.Select(x => x.Value[row]);
     59    }
     60
    5761    public void AddRow(IEnumerable<object> values) {
    5862      var list = values.ToList();
     
    147151      OnColumnsChanged();
    148152      OnColumnNamesChanged();
     153      OnReset();
     154    }
     155
     156    public void ClearValues() {
     157      foreach (var list in variableValues.Values) {
     158        list.Clear();
     159      }
     160      Rows = 0;
     161      OnRowsChanged();
    149162      OnReset();
    150163    }
Note: See TracChangeset for help on using the changeset viewer.