Container* get_issuer() const { return issuer_; }
public:
- static xbt::signal<void(Type&, e_event_type event_type)> on_creation;
+ static xbt::signal<void(Type const&, e_event_type event_type)> on_creation;
Type(e_event_type event_type, const std::string& name, const std::string& alias, const std::string& color,
Type* father);
bool is_colored() const { return not color_.empty(); }
Type* by_name(const std::string& name);
- LinkType* by_name_or_create(const std::string& name, Type* source, Type* dest);
+ LinkType* by_name_or_create(const std::string& name, const Type* source, const Type* dest);
VariableType* by_name_or_create(const std::string& name, const std::string& color);
template <class T> T* by_name_or_create(const std::string& name)
: Type(event_type, name, alias, "", father){};
ValueType(e_event_type event_type, const std::string& name, Type* father)
: Type(event_type, name, name, "", father){};
- virtual ~ValueType() = default;
+ ~ValueType() override = default;
void add_entity_value(const std::string& name, const std::string& color);
void add_entity_value(const std::string& name);
EntityValue* get_entity_value(const std::string& name);
class LinkType : public ValueType {
public:
- static xbt::signal<void(LinkType&, Type&, Type&)> on_creation;
- LinkType(const std::string& name, Type* source, Type* dest, const std::string& alias, Type* father)
+ static xbt::signal<void(LinkType const&, Type const&, Type const&)> on_creation;
+ LinkType(const std::string& name, const Type* source, const Type* dest, const std::string& alias, Type* father)
: ValueType(PAJE_DefineLinkType, name, alias, father)
{
on_creation(*this, *source, *dest);