-Value::Value(std::string name, std::string color, Type* father) : name_(name), color_(color), father_(father)
-{
- if (name.empty() || father == nullptr) {
- THROWF(tracing_error, 0, "can't create a value with no name (or a nullptr father)");
- }
- this->id_ = std::to_string(instr_new_paje_id());
-
- father->values_.insert({name, this});
- XBT_DEBUG("new value %s, child of %s", name_.c_str(), father_->getCname());
- print();
-};
-
-Value::~Value()
-{
- XBT_DEBUG("free value %s, child of %s", getCname(), father_->getCname());
-}
+EntityValue::EntityValue(std::string name, std::string color, Type* father)
+ : id_(instr_new_paje_id()), name_(name), color_(color), father_(father){};