void * hashset_iterator_value(hashset_itr_t itr)
Returns the value at the current index. The called should check hashset_iterator_has_next before call...
Definition hashset_itr.c:78
int hashset_iterator_next(hashset_itr_t itr)
Advance to the next value in the hashset. This returns a non-negative number (the current index) if t...
Definition hashset_itr.c:56
int hashset_iterator_has_next(hashset_itr_t itr)
Return 1 if there is a next value in the hashset and 0 otherwise.
Definition hashset_itr.c:37
hashset_itr_t hashset_iterator(hashset_t set)
Create a hashset iterator. The caller should then iterate over the hashset as follows:
Definition hashset_itr.c:26
struct hashset_itr_st * hashset_itr_t
Definition hashset_itr.h:34
Definition hashset_itr.h:29
int index
Definition hashset_itr.h:31
hashset_t set
Definition hashset_itr.h:30