Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't include <xbt/functional.hpp> when it's not needed.
[simgrid.git] / src / instr / instr_paje_types.hpp
index e23ddc2..f4dae73 100644 (file)
@@ -28,7 +28,7 @@ protected:
   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);
@@ -43,7 +43,7 @@ public:
   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)
@@ -85,7 +85,7 @@ public:
       : 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);
@@ -93,8 +93,8 @@ public:
 
 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);