10 head = (listNode *) 0;
23 void Set::insert(InfoRecord *info)
27 listNode *node = new listNode();
36 void Set::myRemove(listNode **n, InfoRecord *r)
41 myRemove(&((*n)->next), r);
44 void Set::remove(InfoRecord * r)
50 listNode *q = head->next;
70 int Set::find(InfoRecord * r)
74 if (p->info == r) return 1;
80 InfoRecord * Set::iterator(Iterator *iter)
83 iter->next = head->next;
89 InfoRecord * Set::next(Iterator *iter)
91 // ckout << "set::next: " << iter->next << "\n";
95 // ckout << "set::next: iter->next->info=" << iter->next->info << "\n";
96 InfoRecord *temp = iter->next->info;
97 iter->next = iter->next->next;
102 int Set::numElements()
118 printf("%d ",p->info->Id);