reactor-c
1.0
C Runtime for Lingua Franca
Toggle main menu visibility
Loading...
Searching...
No Matches
hashset_itr.h
Go to the documentation of this file.
1
27
28
#ifndef HASHSET_ITR_H_
29
#define HASHSET_ITR_H_
30
31
#include "
hashset.h
"
32
33
#ifdef __cplusplus
34
extern
"C"
{
35
#endif
36
41
struct
hashset_itr_st
{
42
hashset_t
set
;
43
int
index
;
44
};
45
46
typedef
struct
hashset_itr_st
*
hashset_itr_t
;
47
67
hashset_itr_t
hashset_iterator
(
hashset_t
set
);
68
78
void
*
hashset_iterator_value
(
hashset_itr_t
itr);
79
87
int
hashset_iterator_has_next
(
hashset_itr_t
itr);
88
99
int
hashset_iterator_next
(
hashset_itr_t
itr);
100
101
#endif
/* HASHSET_ITR_H_ */
102
103
#ifdef __cplusplus
104
}
105
#endif
hashset_iterator_value
void * hashset_iterator_value(hashset_itr_t itr)
Return the value at the current index.
hashset_iterator_next
int hashset_iterator_next(hashset_itr_t itr)
Advance to the next value in the hashset.
hashset_iterator_has_next
int hashset_iterator_has_next(hashset_itr_t itr)
Return 1 if there is a next value in the hashset and 0 otherwise.
hashset_iterator
hashset_itr_t hashset_iterator(hashset_t set)
Create a hashset iterator.
hashset.h
A hash set implementation in C.
hashset_t
struct hashset_st * hashset_t
Definition
hashset.h:73
hashset_itr_t
struct hashset_itr_st * hashset_itr_t
Definition
hashset_itr.h:46
hashset_itr_st
A hashset iterator.
Definition
hashset_itr.h:41
hashset_itr_st::index
int index
Definition
hashset_itr.h:43
hashset_itr_st::set
hashset_t set
Definition
hashset_itr.h:42
Users
runner
work
reactor-c
reactor-c
include
core
utils
hashset
hashset_itr.h
Generated on
for reactor-c by
1.17.0