Struct ds_iterator

Struct Documentation

struct ds_iterator

Data structure iterator.

Used to provide a uniform interface for iterating through data structures. Not implemented on all data structures in library.

Public Members

struct darray *arr
struct rbuffer *rb
struct llist *list
struct llist_node *curr
union ds_iterator::[anonymous] [anonymous]
enum ds_tag tag
enum ds_iter_type type
int index
bool_t (*classify)(void *e)

Classification function. Used to determine which elements are returned during iteration if non-NULL.