1#ifndef __TINYHASH_COMMON_ITERATOR_H__
2#define __TINYHASH_COMMON_ITERATOR_H__
bool th_iterator_next(th_iterator_t **ptr)
Try to get the next element. Free the iterator if it reachs the end.
void th_iterator_free(th_iterator_t *it)
Free an iterator.
bool(* th_iterator_next_func_t)(th_iterator_t **)
Pointer on function that get the next element.
struct th_iterator_s th_iterator_t
Represents an iterator that allow to iterate over a generic table.
th_iterator_t * th_iterator_create(th_generic_table_t generic_table, th_iterator_next_func_t next)
Allocate then init a new iterator.
Represents an iterator that allow to iterate over a generic table.
th_generic_table_t generic_table
bool(* next)(struct th_iterator_s **)
void * th_generic_table_t
Represents any table.
void * th_any_t
Represent any type of data.