Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
a class with no method is not a class
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 27 Aug 2017 22:37:30 +0000 (00:37 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 27 Aug 2017 22:37:30 +0000 (00:37 +0200)
src/instr/instr_private.h

index e9ce033..3dee571 100644 (file)
@@ -58,17 +58,14 @@ typedef enum {
 
 //--------------------------------------------------
 
-class ess_type {
-  public:
+class Type;
+typedef Type* type_t;
+class Type {
+public:
   char *id;
   char *name;
   char *color;
-};
 
-class Type;
-typedef Type *type_t;
-class Type : public ess_type {
-  public:
   e_entity_types kind;
   Type *father;
   xbt_dict_t children;
@@ -83,8 +80,12 @@ class Type : public ess_type {
 };
 
 //--------------------------------------------------
-class value : public ess_type{
+class value {
 public:
+  char* id;
+  char* name;
+  char* color;
+
   type_t father;
   value* ret;
   value(const char* name, const char* color, type_t father);