Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/DataSources/OneDimensional/RawPointEnumerator.cs @ 13792

Last change on this file since 13792 was 12503, checked in by aballeit, 9 years ago

#2283 added GUI and charts; fixed MCTS

File size: 670 bytes
Line 
1using System.Collections;
2using System.Windows;
3
4namespace Microsoft.Research.DynamicDataDisplay.DataSources
5{
6  public sealed class RawPointEnumerator : IPointEnumerator {
7    private readonly IEnumerator enumerator;
8
9    public RawPointEnumerator(RawDataSource dataSource) {
10      this.enumerator = dataSource.Data.GetEnumerator();
11    }
12
13    public bool MoveNext() {
14      return enumerator.MoveNext();
15    }
16
17    public void GetCurrent(ref Point p) {
18      p = (Point)enumerator.Current;
19    }
20
21    public void ApplyMappings(DependencyObject target) {
22      // do nothing here - no mapping supported
23    }
24
25    public void Dispose() {
26      // do nothing here
27    }
28  }
29}
Note: See TracBrowser for help on using the repository browser.