- this->ret = xbt_new0(s_val, 1);
- this->ret->name = xbt_strdup (name);
- this->ret->father = father;
- this->ret->color = xbt_strdup (color);
-
- char str_id[INSTR_DEFAULT_STR_SIZE];
- snprintf (str_id, INSTR_DEFAULT_STR_SIZE, "%lld", instr_new_paje_id());
- this->ret->id = xbt_strdup (str_id);
-
- xbt_dict_set (father->values, name, ret, nullptr);
- XBT_DEBUG("new value %s, child of %s", ret->name, ret->father->name);
- LogEntityValue(this->ret);
+ this->name_ = xbt_strdup(name);
+ this->color_ = xbt_strdup(color);
+
+ this->id_ = bprintf("%lld", instr_new_paje_id());
+
+ xbt_dict_set(father->values_, name, this, nullptr);
+ XBT_DEBUG("new value %s, child of %s", name_, father_->name_);
+ LogEntityValue(this);