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);
27 int RuntimeHashremove(struct RuntimeHash *,int key, int data);
28 bool RuntimeHashcontainskey(struct RuntimeHash *,int key);
29 bool RuntimeHashcontainskeydata(struct RuntimeHash *,int key, int data);
30 int RuntimeHashget(struct RuntimeHash *,int key, int* data);
31 void RuntimeHashaddParent(struct RuntimeHash *,struct RuntimeHash* parent);
32 int RuntimeHashfirstkey(struct RuntimeHash *);
33 struct RuntimeIterator* RuntimeHashcreateiterator(struct RuntimeHash *);
34 void RuntimeHashiterator(struct RuntimeHash *, struct RuntimeIterator * it);
35 int RuntimeHashcount(struct RuntimeHash *, int key);
36 struct RuntimeHash * RuntimeHashimageSet(struct RuntimeHash *, int key);
41 struct RuntimeNode **bucket;
42 struct RuntimeNode *listhead;
43 struct RuntimeNode *listtail;
46 inline int RuntimeHashcountset(struct RuntimeHash * thisvar);
48 /* RuntimeHashException *************************************************/
51 /* RuntimeIterator *****************************************************/
55 struct RuntimeNode *next;
56 struct RuntimeNode *lnext;
57 struct RuntimeNode *lprev;
62 struct RuntimeIterator {
63 struct RuntimeNode *cur;
66 inline struct RuntimeIterator * noargallocateRuntimeIterator();
68 inline struct RuntimeIterator * allocateRuntimeIterator(struct RuntimeNode *start);
70 inline int RunhasNext(struct RuntimeIterator *thisvar);
72 inline int Runnext(struct RuntimeIterator *thisvar);
74 inline int Runkey(struct RuntimeIterator *thisvar);