Resolving Conflicts ... Still there're errors that should be fixed
[satune.git] / src / Encoders / encodings.h
1
2 #ifndef NAIVEENCODINGASSIGNMENT_H
3 #define NAIVEENCODINGASSIGNMENT_H
4 #include "classlist.h"
5 #include "structs.h"
6 #include "csolver.h"
7 #include "mymemory.h"
8
9
10 #define GETVECTORFUNCTIONENCODING(o) (&((Encodings*)o)->funcEncoding)
11 #define GETVECTORELEMENTENCODING(o) (&((Encodings*)o)->elemEncoding)
12
13 struct Encodings{
14         HashTableVoidToFuncEncod* voidToFuncEncode;
15         HashTableElemToEncod* elemToEncode;
16         VectorFunctionEncoding funcEncoding;
17         VectorElementEncoding elemEncoding;
18 };
19
20 Encodings* allocEncodings();
21
22 //For now, This function just simply goes through elements/functions and 
23 //assigns a predefined Encoding to each of them
24 void assignEncoding(CSolver* csolver, Encodings* This);
25 void encodeFunctionsElements(Encodings* This);
26 void deleteEncodings(Encodings* This);
27
28 #endif /* NAIVEENCODINGASSIGNMENT_H */
29