- xbt_dict_set(father->children_, key, this, nullptr);
- XBT_DEBUG("new type %s, child of %s", typeNameBuff, father->name_);
- }
-}
-
-simgrid::instr::Type::~Type()
-{
- simgrid::instr::Value* val;
- char *value_name;
- xbt_dict_cursor_t cursor = nullptr;
- xbt_dict_foreach (values_, cursor, value_name, val) {
- XBT_DEBUG("free value %s, child of %s", val->name_, val->father_->name_);
- delete val;
- }
- xbt_dict_free(&values_);
- simgrid::instr::Type* child;
- char *child_name;
- xbt_dict_foreach (children_, cursor, child_name, child) {
- delete child;
+ father->children_.insert({alias, this});
+ XBT_DEBUG("new type %s, child of %s", name_.c_str(), father->getCname());