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 int RuntimeHashadd_I(struct RuntimeHash *, int key, int data);
30 int RuntimeHashremovekey(struct RuntimeHash *,int key);
31 int RuntimeHashremove(struct RuntimeHash *,int key, int data);
32 bool RuntimeHashcontainskey(struct RuntimeHash *,int key);
33 bool RuntimeHashcontainskeydata(struct RuntimeHash *,int key, int data);
34 int RuntimeHashget(struct RuntimeHash *,int key, int* data);
35 void RuntimeHashaddParent(struct RuntimeHash *,struct RuntimeHash* parent);
36 int RuntimeHashfirstkey(struct RuntimeHash *);
37 struct RuntimeIterator* RuntimeHashcreateiterator(struct RuntimeHash *);
38 void RuntimeHashiterator(struct RuntimeHash *, struct RuntimeIterator * it);
39 int RuntimeHashcount(struct RuntimeHash *, int key);
40 struct RuntimeHash * RuntimeHashimageSet(struct RuntimeHash *, int key);
45 struct RuntimeNode **bucket;
46 struct RuntimeNode *listhead;
47 struct RuntimeNode *listtail;
50 inline int RuntimeHashcountset(struct RuntimeHash * thisvar);
52 /* RuntimeHashException *************************************************/
55 /* RuntimeIterator *****************************************************/
59 struct RuntimeNode *next;
60 struct RuntimeNode *lnext;
61 struct RuntimeNode *lprev;
66 struct RuntimeIterator {
67 struct RuntimeNode *cur;
70 inline struct RuntimeIterator * noargallocateRuntimeIterator();
72 inline struct RuntimeIterator * allocateRuntimeIterator(struct RuntimeNode *start);
74 inline int RunhasNext(struct RuntimeIterator *thisvar);
76 inline int Runnext(struct RuntimeIterator *thisvar);
78 inline int Runkey(struct RuntimeIterator *thisvar);