#include <pointsgraphtimeD2.h>


/*
pointsgraphtimeD2(uintc N_, doublec xaxislength_)
  : N(N_), xaxislength(xaxislength_)
{
  Ncurrent=0;

}
*/

void pointsgraphtimeD2::push_back(doublec y)
{
  if (Ncurrent==N)
  {
    ytime.popfront();
    ytime.push_back(y);
    return;
  }
  assert(Ncurrent<=N);

  ++Ncurrent;
  ytime.push_back(y);
}





