public void Add(float new_data) { PlotData tmp_data = new PlotData(); tmp_data.data = new_data; if (start == null) { start = tmp_data; min = new_data; max = new_data; now = tmp_data; } else { end.next = tmp_data; if (new_data < min) { min = new_data; } if (max < new_data) { max = new_data; } } end = tmp_data; count++; }
public float Get() { PlotData dummy; dummy = now; now = now.next; return(dummy.data); }
public void GetReset() { if (Count == 0) { now = null; } else { now = start; } }
public void Empty() { start = null; end = null; count = 0; }