NeighborSearch::~NeighborSearch() { neighbor_edges.clear(); neighbors.clear(); clear_caches(); clear_supported_shapes(); clear_neighbor_pss(); detach_pss(); for(unsigned int i = 0; i < transformations.size(); i++) delete [] transformations.at(i); transformations.clear(); n_trans.clear(); }
NeighborSearch<Scalar>::~NeighborSearch() { neighbor_edges.clear(); neighbors.clear(); clear_supported_shapes(); for(unsigned int i = 0; i < central_transformations.get_size(); i++) if(this->central_transformations.present(i)) delete this->central_transformations.get(i); for(unsigned int i = 0; i < neighbor_transformations.get_size(); i++) if(this->neighbor_transformations.present(i)) delete this->neighbor_transformations.get(i); }