reactor-c
C Runtime for Lingua Franca
|
Functions | |
hashset_itr_t | hashset_iterator (hashset_t set) |
Create a hashset iterator. The caller should then iterate over the hashset as follows: | |
int | hashset_iterator_has_next (hashset_itr_t itr) |
Return 1 if there is a next value in the hashset and 0 otherwise. | |
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 there is a next item and -1 otherwise. | |
void * | hashset_iterator_value (hashset_itr_t itr) |
Returns the value at the current index. The called should check hashset_iterator_has_next before calling this. | |
hashset_itr_t hashset_iterator | ( | hashset_t | set | ) |
Create a hashset iterator. The caller should then iterate over the hashset as follows:
The caller must call free() on this iterator after using it.
int hashset_iterator_has_next | ( | hashset_itr_t | itr | ) |
Return 1 if there is a next value in the hashset and 0 otherwise.
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 there is a next item and -1 otherwise.
void * hashset_iterator_value | ( | hashset_itr_t | itr | ) |
Returns the value at the current index. The called should check hashset_iterator_has_next before calling this.