X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b10fe350b15bbc86b84dd18cf467d9dd4870d5cc..f368403c7b31807751cbc287deeb4d92e90070cd:/src/instr/instr_paje_types.hpp diff --git a/src/instr/instr_paje_types.hpp b/src/instr/instr_paje_types.hpp index a5e31d40c7..b30eb760bc 100644 --- a/src/instr/instr_paje_types.hpp +++ b/src/instr/instr_paje_types.hpp @@ -22,7 +22,7 @@ class Type { long long int id_ = new_paje_id(); std::string name_; std::string color_; - Type* father_; + Type* parent_; std::map, std::less<>> children_; Container* issuer_ = nullptr; @@ -33,14 +33,14 @@ public: static xbt::signal on_creation; Type(PajeEventType event_type, const std::string& name, const std::string& alias, const std::string& color, - Type* father); + Type* parent); virtual ~Type() = default; long long int get_id() const { return id_; } const std::string& get_name() const { return name_; } const char* get_cname() const { return name_.c_str(); } const std::string& get_color() const { return color_; } - Type* get_father() const { return father_; } + Type* get_parent() const { return parent_; } const std::map, std::less<>>& get_children() const { return children_; } bool is_colored() const { return not color_.empty(); } @@ -64,15 +64,15 @@ public: class ContainerType : public Type { public: explicit ContainerType(const std::string& name) : Type(PajeEventType::DefineContainerType, name, name, "", nullptr){}; - ContainerType(const std::string& name, Type* father) - : Type(PajeEventType::DefineContainerType, name, name, "", father){}; + ContainerType(const std::string& name, Type* parent) + : Type(PajeEventType::DefineContainerType, name, name, "", parent){}; }; class VariableType : public Type { std::vector events_; public: - VariableType(const std::string& name, const std::string& color, Type* father) - : Type(PajeEventType::DefineVariableType, name, name, color, father) + VariableType(const std::string& name, const std::string& color, Type* parent) + : Type(PajeEventType::DefineVariableType, name, name, color, parent) { } void instr_event(double now, double delta, const char* resource, double value); @@ -84,10 +84,10 @@ public: class ValueType : public Type { public: std::map> values_; - ValueType(PajeEventType event_type, const std::string& name, const std::string& alias, Type* father) - : Type(event_type, name, alias, "", father){}; - ValueType(PajeEventType event_type, const std::string& name, Type* father) - : Type(event_type, name, name, "", father){}; + ValueType(PajeEventType event_type, const std::string& name, const std::string& alias, Type* parent) + : Type(event_type, name, alias, "", parent){}; + ValueType(PajeEventType event_type, const std::string& name, Type* parent) + : Type(event_type, name, name, "", parent){}; 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); @@ -96,8 +96,8 @@ public: class LinkType : public ValueType { public: static xbt::signal on_creation; - LinkType(const std::string& name, const Type* source, const Type* dest, const std::string& alias, Type* father) - : ValueType(PajeEventType::DefineLinkType, name, alias, father) + LinkType(const std::string& name, const Type* source, const Type* dest, const std::string& alias, Type* parent) + : ValueType(PajeEventType::DefineLinkType, name, alias, parent) { on_creation(*this, *source, *dest); } @@ -108,13 +108,13 @@ public: class EventType : public ValueType { public: - EventType(const std::string& name, Type* father) : ValueType(PajeEventType::DefineEventType, name, father) {} + EventType(const std::string& name, Type* parent) : ValueType(PajeEventType::DefineEventType, name, parent) {} }; class StateType : public ValueType { std::vector events_; public: - StateType(const std::string& name, Type* father) : ValueType(PajeEventType::DefineStateType, name, father) {} + StateType(const std::string& name, Type* parent) : ValueType(PajeEventType::DefineStateType, name, parent) {} void set_event(const std::string& value_name); void push_event(const std::string& value_name); void push_event(const std::string& value_name, TIData* extra);