Ignore:
Timestamp:
11/22/19 08:22:53 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: disconnecting bamg from dataset to speed up compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/bamg/BamgQuadtree.cpp

    r23066 r24387  
    22#include <string.h>
    33#include <stdlib.h>
    4 
    54#include "./bamgobjects.h"
    6 #include "../datastructures/datastructures.h"
    75
    86namespace bamg {
     
    6866                this->NbVertices    = 0;
    6967
    70                 /*Create container*/
    71                 this->boxcontainer=new DataSet();
    72 
    7368                /*Create Root, pointer toward the main box*/
    7469                this->root=NewBamgQuadtreeBox();
     
    8075                this->NbQuadtreeBox = 0;
    8176                this->NbVertices    = 0;
    82 
    83                 /*Create container*/
    84                 this->boxcontainer=new DataSet();
    8577
    8678                /*Create Root, pointer toward the main box*/
     
    9991        /*}}}*/
    10092        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();
    10299                root=NULL;
    103100        }
     
    514511
    515512                /*Add root to the container*/
    516                 boxcontainer->AddObject(newbox);
     513                boxcontainer.push_back(newbox);
    517514                this->NbQuadtreeBox++;
    518515
Note: See TracChangeset for help on using the changeset viewer.