c++/EEDB/Tools/ResortBuffer.cpp
////////////////////////////////////////////////////////////////////////////
//
// methods to working with completed features 
//
////////////////////////////////////////////////////////////////////////////
methods to working with completed features
methods to working with completed features
void EEDB::Tools::ResortBuffer::reset() {  
  EEDB::FeatureLink *fl2, *fl = _feature_buffer_start;
  while(fl !=NULL) {
    fl->feature->release();
    fl2 = fl;
    fl = fl->next;
    delete fl2;
  }
  _feature_buffer_start = NULL;
  _feature_buffer_end   = NULL;
  fl = _completed_start;
  while(fl !=NULL) {
    fl->feature->release();
    fl2 = fl;
    fl = fl->next;
    delete fl2;
  }
  _completed_start = NULL;
  _completed_end   = NULL;
}
void EEDB :: Tools :: ResortBuffer :: reset ( ) { EEDB :: FeatureLink * fl2 , * fl = _feature_buffer_start ; while ( fl != NULL ) { fl -> feature -> release ( ) ; fl2 = fl ; fl = fl -> next ; delete fl2 ; } _feature_buffer_start = NULL ; _feature_buffer_end = NULL ; fl = _completed_start ; while ( fl != NULL ) { fl -> feature -> release ( ) ; fl2 = fl ; fl = fl -> next ; delete fl2 ; } _completed_start = NULL ; _completed_end = NULL ; }
methods to working with completed features
methods to working with completed features