Axl Hash Cursor: Iterator support for the Axl Hash


Functions

void axl_hash_cursor_first (axlHashCursor *cursor)
 Allows to configure the cursor to point to the first item of the hash (if there are any).
void axl_hash_cursor_free (axlHashCursor *cursor)
 Deallocates memory used by the cursor.
axlPointer axl_hash_cursor_get_key (axlHashCursor *cursor)
 Allows to get current key at the current cursor state.
axlPointer axl_hash_cursor_get_value (axlHashCursor *cursor)
 Allows to get current value at the current cursor state.
bool axl_hash_cursor_has_item (axlHashCursor *cursor)
 Allows to know if the current position has items.
bool axl_hash_cursor_has_next (axlHashCursor *cursor)
 Allows to check if there are more elements next to the current element pointed by the cursor.
axlHashaxl_hash_cursor_hash (axlHashCursor *cursor)
 Allows to get the reference to the hash that is associated to the cursor received.
void axl_hash_cursor_last (axlHashCursor *cursor)
 Allows to configure the cursor to point to the last item of the hash (if there are any).
axlHashCursoraxl_hash_cursor_new (axlHash *hash)
 Allows to get a cursor to iterate the hash in a linear and efficient way.
void axl_hash_cursor_next (axlHashCursor *cursor)
 Allows to configure the cursor to point to the next item of the hash (if there are any).
void axl_hash_cursor_remove (axlHashCursor *cursor)
 Allows to remove current element pointed by the cursor, maintainig internal state of the cursor, calling to the destroy function associated in the hash.