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; } }
Track :: ~Track() { for(vector<TrackPoint*>::iterator i = point.begin(); i != point.end(); ++i) { TrackPoint *tp = (*i); if(tp) { tp->destroy(); } } }