Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add the Storage::read_async and Storage::write_async methods
[simgrid.git] / src / instr / instr_paje_types.hpp
index 4ac25a5..7784cfa 100644 (file)
@@ -33,7 +33,7 @@ public:
   std::string get_name() { return name_; }
   const char* get_cname() { return name_.c_str(); }
   long long int get_id() { return id_; }
-  bool isColored() { return not color_.empty(); }
+  bool is_colored() { return not color_.empty(); }
 
   Type* by_name(std::string name);
   LinkType* by_name_or_create(std::string name, Type* source, Type* dest);
@@ -45,10 +45,10 @@ public:
     return cont == children_.end() ? new T(name, this) : static_cast<T*>(cont->second);
   }
 
-  void setCallingContainer(Container* container) { issuer_ = container; }
+  void set_calling_container(Container* container) { issuer_ = container; }
 
-  void logDefinition(e_event_type event_type);
-  void logDefinition(Type* source, Type* dest);
+  void log_definition(e_event_type event_type);
+  void log_definition(Type* source, Type* dest);
 };
 
 class ContainerType : public Type {
@@ -63,9 +63,9 @@ public:
   VariableType(std::string name, std::string color, Type* father);
   ~VariableType();
   void instr_event(double now, double delta, const char* resource, double value);
-  void setEvent(double timestamp, double value);
-  void addEvent(double timestamp, double value);
-  void subEvent(double timestamp, double value);
+  void set_event(double timestamp, double value);
+  void add_event(double timestamp, double value);
+  void sub_event(double timestamp, double value);
 };
 
 class ValueType : public Type {
@@ -74,17 +74,17 @@ public:
   ValueType(std::string name, std::string alias, Type* father) : Type(name, alias, "", father){};
   ValueType(std::string name, Type* father) : Type(name, name, "", father){};
   virtual ~ValueType();
-  void addEntityValue(std::string name, std::string color);
-  void addEntityValue(std::string name);
-  EntityValue* getEntityValue(std::string name);
+  void add_entity_value(std::string name, std::string color);
+  void add_entity_value(std::string name);
+  EntityValue* get_entity_value(std::string name);
 };
 
 class LinkType : public ValueType {
 public:
   LinkType(std::string name, std::string alias, Type* father);
-  void startEvent(Container* startContainer, std::string value, std::string key);
-  void startEvent(Container* startContainer, std::string value, std::string key, int size);
-  void endEvent(Container* endContainer, std::string value, std::string key);
+  void start_event(Container* startContainer, std::string value, std::string key);
+  void start_event(Container* startContainer, std::string value, std::string key, int size);
+  void end_event(Container* endContainer, std::string value, std::string key);
 };
 
 class EventType : public ValueType {
@@ -97,11 +97,11 @@ class StateType : public ValueType {
 public:
   StateType(std::string name, Type* father);
   ~StateType();
-  void setEvent(std::string value_name);
-  void pushEvent(std::string value_name);
-  void pushEvent(std::string value_name, TIData* extra);
-  void popEvent();
-  void popEvent(TIData* extra);
+  void set_event(std::string value_name);
+  void push_event(std::string value_name);
+  void push_event(std::string value_name, TIData* extra);
+  void pop_event();
+  void pop_event(TIData* extra);
 };
 }
 }