Macaulay2 Engine
Loading...
Searching...
No Matches

◆ Table_map()

void Table_map ( T * table,
void applyconst void *key, void **value, void *cl,
void * cl )

Definition at line 113 of file table.c.

116{
117 int i;
118#ifndef NDEBUG
119 unsigned stamp;
120#endif
121 struct binding *p;
122 assert(table);
123 assert(apply);
124#ifndef NDEBUG
125 stamp = table->timestamp;
126#endif
127 for (i = 0; i < table->size; i++)
128 for (p = table->buckets[i]; p; p = p->link)
129 {
130 apply(p->key, &p->value, cl);
131 assert(table->timestamp == stamp);
132 }
133}
int p
int size
Definition table.c:30
unsigned timestamp
Definition table.c:34
struct T::binding ** buckets

References T::buckets, p, T::size, T, and T::timestamp.