SafeTypes2
|
The struct s2ctx_iter
defines publically visible members of the iterator base type structure.
More...
#include <s2obj.h>
Public Attributes | |
s2iter_final_func_t | final |
slot for the finalizer subroutine. | |
s2iter_stepfunc_t | next |
the iterator stepping function. | |
void * | key |
the key for the current value. | |
T * | value |
the slot holding the value object at the current iterator position. | |
The struct s2ctx_iter
defines publically visible members of the iterator base type structure.
void* s2ctx_iter::key |
the key for the current value.
This is intptr_t
for s2list_t
and s2data_t *
for s2dict_t
. When the key is an object, it's an unretained reference to the internal structure member, so it shouldn't be modified or have its reference or kept count changed.