18 /* SimpleHash *********************************************************/
20 struct RuntimeHash * noargallocateRuntimeHash();
21 struct RuntimeHash * allocateRuntimeHash(int size);
22 void RuntimeHashaddChild(struct RuntimeHash *thisvar, struct RuntimeHash * child);
23 void freeRuntimeHash(struct RuntimeHash *);
25 void RuntimeHashrehash(struct RuntimeHash * thisvar);
26 int RuntimeHashadd(struct RuntimeHash *, int key, int data);
28 struct RuntimeHash * allocateRuntimeHash_I(int size);
29 int RuntimeHashadd_I(struct RuntimeHash *, int key, int data);
31 int RuntimeHashremovekey(struct RuntimeHash *,int key);
32 int RuntimeHashremove(struct RuntimeHash *,int key, int data);
33 bool RuntimeHashcontainskey(struct RuntimeHash *,int key);
34 bool RuntimeHashcontainskeydata(struct RuntimeHash *,int key, int data);
35 int RuntimeHashget(struct RuntimeHash *,int key, int* data);
36 void RuntimeHashaddParent(struct RuntimeHash *,struct RuntimeHash* parent);
37 int RuntimeHashfirstkey(struct RuntimeHash *);
38 struct RuntimeIterator* RuntimeHashcreateiterator(struct RuntimeHash *);
39 void RuntimeHashiterator(struct RuntimeHash *, struct RuntimeIterator * it);
40 int RuntimeHashcount(struct RuntimeHash *, int key);
41 struct RuntimeHash * RuntimeHashimageSet(struct RuntimeHash *, int key);
46 struct RuntimeNode **bucket;
47 struct RuntimeNode *listhead;
48 struct RuntimeNode *listtail;
51 inline int RuntimeHashcountset(struct RuntimeHash * thisvar);
53 /* RuntimeHashException *************************************************/
56 /* RuntimeIterator *****************************************************/
60 struct RuntimeNode *next;
61 struct RuntimeNode *lnext;
62 struct RuntimeNode *lprev;
67 struct RuntimeIterator {
68 struct RuntimeNode *cur;
71 inline struct RuntimeIterator * noargallocateRuntimeIterator();
73 inline struct RuntimeIterator * allocateRuntimeIterator(struct RuntimeNode *start);
75 inline int RunhasNext(struct RuntimeIterator *thisvar);
77 inline int Runnext(struct RuntimeIterator *thisvar);
79 inline int Runkey(struct RuntimeIterator *thisvar);