libamxc  1.10.3
C Generic Data Containers
amxc_array_it.c File Reference

Ambiorix array iterator API implementation. More...

#include <stdlib.h>
#include <amxc/amxc_array.h>
#include <amxc/amxc_macros.h>

Go to the source code of this file.

Functions

amxc_array_it_tamxc_array_it_get_next (const amxc_array_it_t *const reference)
 Gets the next used item in the array, starting from the provided array iterator. More...
 
amxc_array_it_tamxc_array_it_get_next_free (const amxc_array_it_t *const reference)
 Gets the next free item in the array, starting from the provided array iterator. More...
 
amxc_array_it_tamxc_array_it_get_previous (const amxc_array_it_t *const reference)
 Gets the previous used item in the array, starting from the provided array iterator. More...
 
amxc_array_it_tamxc_array_it_get_previous_free (const amxc_array_it_t *const reference)
 Gets the previous free item in the array, starting from the provided array iterator. More...
 
unsigned int amxc_array_it_index (const amxc_array_it_t *const it)
 Gets the index of the iterator in the array. More...
 
int amxc_array_it_set_data (amxc_array_it_t *const it, void *data)
 Sets the data pointer of an array iterator. More...
 
void * amxc_array_it_take_data (amxc_array_it_t *it)
 Gets and removes a data pointer from the iterator. More...
 
int amxc_array_it_swap (amxc_array_it_t *const it1, amxc_array_it_t *const it2)
 Swaps the content of the two array iterators. More...
 

Detailed Description

Ambiorix array iterator API implementation.

Definition in file amxc_array_it.c.