Example #1
0
void Track :: step(const TimeType &time)
{
  if(time > first && time < last) {
    unsigned int k = (unsigned int)(time-first);
    TrackPoint *tp = point[k];
    tp->destroy();
    point[k] = NULL;
  }
}
Example #2
0
Track :: ~Track() {
  for(vector<TrackPoint*>::iterator i = point.begin();
      i != point.end();
      ++i) {
    TrackPoint *tp = (*i);
    if(tp) {
       tp->destroy();
    }
  }
}