From: Takishipp Date: Wed, 16 Aug 2017 08:58:48 +0000 (+0200) Subject: Merge branch 'master' of github.com:simgrid/simgrid into s_type_cleanup X-Git-Tag: v3_17~203^2^2~10 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b87fc0829538ec066fd077e6c30ee6270b8abd78?hp=-c Merge branch 'master' of github.com:simgrid/simgrid into s_type_cleanup --- b87fc0829538ec066fd077e6c30ee6270b8abd78 diff --combined src/instr/instr_private.h index 9cf8031370,a2a6b153bc..e8e38d4536 --- a/src/instr/instr_private.h +++ b/src/instr/instr_private.h @@@ -8,10 -8,11 +8,11 @@@ #include - #include "simgrid/instr.h" #include "instr/instr_interface.h" - #include "src/internal_config.h" + #include "simgrid/instr.h" #include "simgrid_config.h" + #include "src/internal_config.h" + #include SG_BEGIN_DECL() @@@ -56,27 -57,27 +57,27 @@@ typedef enum } e_entity_types; //-------------------------------------------------- -class s_type; -typedef s_type *type_t; -class s_type { + +class ess_type { public: char *id; char *name; char *color; +}; + +class s_type; +typedef s_type *type_t; +class s_type : public ess_type { + public: e_entity_types kind; s_type *father; xbt_dict_t children; xbt_dict_t values; //valid for all types except variable and container }; -typedef s_type s_type_t; - //-------------------------------------------------- -class value { +class value : public ess_type{ public: - char *id; - char *name; - char *color; type_t father; value* ret; value(const char* name, const char* color, type_t father); @@@ -113,6 -114,7 +114,6 @@@ class s_container s_container *father; xbt_dict_t children; }; -typedef s_container s_container_t; //-------------------------------------------------- class PajeEvent { @@@ -265,12 -267,11 +266,11 @@@ public }; - - extern XBT_PRIVATE xbt_dict_t created_categories; - extern XBT_PRIVATE xbt_dict_t declared_marks; - extern XBT_PRIVATE xbt_dict_t user_host_variables; - extern XBT_PRIVATE xbt_dict_t user_vm_variables; - extern XBT_PRIVATE xbt_dict_t user_link_variables; + extern XBT_PRIVATE std::set created_categories; + extern XBT_PRIVATE std::set declared_marks; + extern XBT_PRIVATE std::set user_host_variables; + extern XBT_PRIVATE std::set user_vm_variables; + extern XBT_PRIVATE std::set user_link_variables; extern XBT_PRIVATE double TRACE_last_timestamp_to_dump; /* instr_paje_header.c */ @@@ -325,8 -326,8 +325,8 @@@ XBT_PRIVATE void TRACE_surf_link_set_ut XBT_PUBLIC(void) TRACE_surf_resource_utilization_alloc(); /* instr_paje.c */ - extern XBT_PRIVATE xbt_dict_t trivaNodeTypes; - extern XBT_PRIVATE xbt_dict_t trivaEdgeTypes; + extern XBT_PRIVATE std::set trivaNodeTypes; + extern XBT_PRIVATE std::set trivaEdgeTypes; XBT_PRIVATE long long int instr_new_paje_id (); XBT_PRIVATE void PJ_container_alloc (); XBT_PRIVATE void PJ_container_release ();