model-type.h
Go to the documentation of this file.
1 
9 #ifndef _MODELTYPE_H_
10 #define _MODELTYPE_H_
11 
12 #include "attribute-types.h"
13 #include "interval.h"
14 #include "enum.h"
15 #include "tree.h"
16 
20 typedef struct ModelType {
26  union {
33  };
34 } ModelType;
35 
41 void freeModelType(ModelType* mt, int freeItself);
42 
43 #endif // _MODELTYPE_H_
Structure that contains the type and the values of the attribute depending on type.
Definition: model-type.h:20
unsigned char attrType
Stores the type of the attribute.
Definition: attribute-types.h:17
Contains the definition of our n-ary Tree.
Contains the attribute's types definition In our model we have five attribute types: interval of inte...
Structure that defines the enumeration type.
Definition: enum.h:30
Contains the definition of the Enum and EnumType.
void freeModelType(ModelType *mt, int freeItself)
Free the ModelType.
Definition: model-type.c:10
Tree tree
Contains the definition of the type if it is a tree.
Definition: model-type.h:32
attrType type
The type contained.
Definition: model-type.h:22
Defines the n-ary tree.
Definition: tree.h:25
Structure that contains a signed integer interval.
Definition: interval.h:17
Enum enu
Contains the definition of the type if it is an enumeration.
Definition: model-type.h:30
struct ModelType ModelType
Structure that contains the type and the values of the attribute depending on type.
Interval inter
Contains the definition of the type if it is an interval.
Definition: model-type.h:28
Contains the definition of the Interval.