Changeset 24387 for issm/trunk-jpl/src/c/bamg/BamgQuadtree.cpp
- Timestamp:
- 11/22/19 08:22:53 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/bamg/BamgQuadtree.cpp
r23066 r24387 2 2 #include <string.h> 3 3 #include <stdlib.h> 4 5 4 #include "./bamgobjects.h" 6 #include "../datastructures/datastructures.h"7 5 8 6 namespace bamg { … … 68 66 this->NbVertices = 0; 69 67 70 /*Create container*/71 this->boxcontainer=new DataSet();72 73 68 /*Create Root, pointer toward the main box*/ 74 69 this->root=NewBamgQuadtreeBox(); … … 80 75 this->NbQuadtreeBox = 0; 81 76 this->NbVertices = 0; 82 83 /*Create container*/84 this->boxcontainer=new DataSet();85 77 86 78 /*Create Root, pointer toward the main box*/ … … 99 91 /*}}}*/ 100 92 BamgQuadtree::~BamgQuadtree() {/*{{{*/ 101 delete boxcontainer; 93 94 vector<BamgQuadtreeBox*>::reverse_iterator object; 95 for(object=boxcontainer.rbegin() ; object <boxcontainer.rend(); object++ ){ 96 delete (*object); 97 } 98 boxcontainer.clear(); 102 99 root=NULL; 103 100 } … … 514 511 515 512 /*Add root to the container*/ 516 boxcontainer ->AddObject(newbox);513 boxcontainer.push_back(newbox); 517 514 this->NbQuadtreeBox++; 518 515
Note:
See TracChangeset
for help on using the changeset viewer.