Macaulay2 Engine
Loading...
Searching...
No Matches
◆
Table_map()
void Table_map
(
T
*
table
,
void
apply
const 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
}
p
int p
Definition
godboltTest.cpp:36
T::size
int size
Definition
table.c:30
T::timestamp
unsigned timestamp
Definition
table.c:34
T::buckets
struct T::binding ** buckets
References
T::buckets
,
p
,
T::size
,
T
, and
T::timestamp
.
Macaulay2
e
table.c
Generated on
for Macaulay2 Engine by
1.15.0