Example #1
0
 void TraceAnalyzer::clear()
 {
   for (PerContext::iterator it = _p->perContext.begin(), iend = _p->perContext.end();
     it != iend; ++it)
     delete_content(it->second);
   _p->perContext.clear();
   _p->perId.clear();
 }
Example #2
0
 CallData::~CallData()
 {
   // unhook from parent
   if (parent)
     parent->children.remove(this); // might do nothing if we are in parent dtor
   // delete sync children
   delete_content(this->children);
   // disconnect async children
   for (unsigned i=0; i<asyncChildren.size(); ++i)
     asyncChildren[i]->asyncParent = 0;
 }
Example #3
0
void Compartment::replace_content(Species *ns, vector<Compartment *> *nc) {
  delete_content();
  content_species = ns;
  content_compartments = nc;
}
Example #4
0
//destructor
Compartment::~Compartment() {
  delete wrap;
  delete_content();
}