2.4.2.3 Iteration¶
-
typedef size_t
ZixHashIter
¶ An iterator to an entry in a hash table.
This is really just an index, but should be considered opaque to the user and only used via the provided API and equality comparison.
-
ZixHashIter
zix_hash_begin
(const ZixHash *hash)¶ Return an iterator to the first record in a hash, or the end if it is empty.
-
ZixHashIter
zix_hash_end
(const ZixHash *hash)¶ Return an iterator one past the last possible record in a hash.
-
ZixHashRecord *
zix_hash_get
(const ZixHash *hash, ZixHashIter i)¶ Return the record pointed to by an iterator.
-
ZixHashIter
zix_hash_next
(const ZixHash *hash, ZixHashIter i)¶ Return an iterator that has been advanced to the next record in a hash.