ck_rhs_next (3) - Linux Manuals

ck_rhs_next: iterate to next entry in hash set

NAME

ck_rhs_next - iterate to next entry in hash set

LIBRARY

Concurrency Kit (libck, -lck)

SYNOPSIS

In ck_rhs.h Ft bool Fn ck_rhs_next ck_rhs_t *hs ck_rhs_iterator_t *iterator void **entry

DESCRIPTION

The Fn ck_rhs_next 3 function will increment the iterator object pointed to by Fa iterator to point to the next non-empty hash set entry. If Fn ck_rhs_next 3 returns true then the pointer pointed to by Fa entry is initialized to the current hash set key pointed to by the Fa iterator object.

It is expected that Fa iterator has been initialized using the ck_rhs_iterator_init3 function or statically initialized using CK_RHS_ITERATOR_INITIALIZER.

RETURN VALUES

If Fn ck_rhs_next 3 returns true then the object pointed to by Fa entry points to a valid hash set key. If Fn ck_rhs_next 3 returns false then the value of the object pointed to by Fa entry is undefined.

ERRORS

Behavior is undefined if Fa iterator or Fa hs are uninitialized.

SEE ALSO

ck_rhs_init3, ck_rhs_move3, ck_rhs_destroy3, CK_RHS_HASH3, ck_rhs_iterator_init3, ck_rhs_get3, ck_rhs_put3, ck_rhs_put_unique3, ck_rhs_set3, ck_rhs_fas3, ck_rhs_remove3, ck_rhs_grow3, ck_rhs_rebuild3, ck_rhs_gc3, ck_rhs_count3, ck_rhs_reset3, ck_rhs_reset_size3, ck_rhs_stat3

Additional information available at http://concurrencykit.org/