Commit after resolving conflicts
[satune.git] / src / AST / element.h
1 #ifndef ELEMENT_H
2 #define ELEMENT_H
3 #include "classlist.h"
4 #include "mymemory.h"
5 #include "ops.h"
6 #include "structs.h"
7
8 #define GETELEMENTTYPE(o) (((Element*)o)->type)
9
10 //FIXME:TALK ABOUT ELEMENT
11 struct Element {
12         ElementType type;
13         Set * set;
14         ElementEncoding * encoding;
15 };
16
17 struct ElementSet {
18     Element base;
19     Set * set;
20 };
21
22 struct ElementFunction{
23     Element base;
24     Function * function;
25     VectorElement* Elements;
26     Boolean * overflowstatus;
27 };
28
29 Element * allocElement(Set *s);
30 Element* allocElementFunction(Function * function, Element ** array, uint numArrays, Boolean * overflowstatus);
31 void deleteElement(Element *This);
32 #endif