-Type::Type(std::string name, std::string alias, std::string color, Type* father)
- : id_(instr_new_paje_id()), name_(name), color_(color), father_(father)
-{
- if (name.empty() || alias.empty())
- THROWF(tracing_error, 0, "can't create a new type with no name or alias");
-
- if (father != nullptr){
- father->children_.insert({alias, this});
- XBT_DEBUG("new type %s, child of %s", name_.c_str(), father->get_cname());
- }
-}
-
-Type::~Type()
-{
- for (auto elm : children_)
- delete elm.second;
-}
-
-ValueType::~ValueType()
-{
- for (auto elm : values_)
- delete elm.second;
-}
-
-ContainerType::ContainerType(std::string name, Type* father) : Type(name, name, "", father)
-{
- XBT_DEBUG("ContainerType %s(%lld), child of %s(%lld)", get_cname(), get_id(), father->get_cname(), father->get_id());
- logDefinition(PAJE_DefineContainerType);
-}
-
-EventType::EventType(std::string name, Type* father) : ValueType(name, father)