|
static void | amxc_array_initialize_items (amxc_array_t *array, const size_t start_pos) |
|
static void | amxc_array_clean_items (amxc_array_t *array, const size_t start_pos, const size_t items, amxc_array_it_delete_t func) |
|
static int | amxc_array_realloc (amxc_array_t *array, const size_t items) |
|
static size_t | amxc_array_calculate_last_used (amxc_array_t *array, const size_t start) |
|
static size_t | amxc_array_calculate_first_used (amxc_array_t *array, const size_t start) |
|
static int | amxc_array_sort_internal (amxc_array_t *const array, amxc_array_it_cmp_t cmp, int32_t lo, int32_t high) |
|
int8_t | amxc_array_new (amxc_array_t **array, const size_t items) |
| Allocates an array. More...
|
|
void | amxc_array_delete (amxc_array_t **array, amxc_array_it_delete_t func) |
| Frees the previously allocated array. More...
|
|
int | amxc_array_init (amxc_array_t *const array, const size_t items) |
| Initializes an array. More...
|
|
void | amxc_array_clean (amxc_array_t *const array, amxc_array_it_delete_t func) |
| Removes all items from the array. More...
|
|
int | amxc_array_grow (amxc_array_t *const array, const size_t items) |
| Expands the array. More...
|
|
int | amxc_array_shrink (amxc_array_t *const array, const size_t items, amxc_array_it_delete_t func) |
| Shrinks the array. More...
|
|
int | amxc_array_shift_right (amxc_array_t *const array, const size_t items, amxc_array_it_delete_t func) |
| Shift all items to the right in the array. More...
|
|
int | amxc_array_shift_left (amxc_array_t *const array, const size_t items, amxc_array_it_delete_t func) |
| Shift all items to the left in the array. More...
|
|
bool | amxc_array_is_empty (const amxc_array_t *const array) |
| Checks that the array is empty. More...
|
|
size_t | amxc_array_size (const amxc_array_t *const array) |
| Calculates the number of used items in the array. More...
|
|
amxc_array_it_t * | amxc_array_append_data (amxc_array_t *const array, void *data) |
| Adds an item after the last used item in the array. More...
|
|
amxc_array_it_t * | amxc_array_prepend_data (amxc_array_t *const array, void *data) |
| Adds an item before the first used item in the array. More...
|
|
amxc_array_it_t * | amxc_array_set_data_at (amxc_array_t *const array, const unsigned int index, void *data) |
| Sets data at the given index. More...
|
|
amxc_array_it_t * | amxc_array_get_at (const amxc_array_t *const array, const unsigned int index) |
| Gets the item iterator for the given index. More...
|
|
amxc_array_it_t * | amxc_array_get_first (const amxc_array_t *const array) |
| Gets the item iterator of the first used item in the array. More...
|
|
amxc_array_it_t * | amxc_array_get_first_free (const amxc_array_t *const array) |
| Gets the first free position in the array. More...
|
|
amxc_array_it_t * | amxc_array_get_last (const amxc_array_t *const array) |
| Gets the item iterator of the last used item in the array. More...
|
|
amxc_array_it_t * | amxc_array_get_last_free (const amxc_array_t *const array) |
| Gets the last free position in the array. More...
|
|
void * | amxc_array_take_first_data (amxc_array_t *const array) |
| Takes the data pointer from the first used item in the array. More...
|
|
void * | amxc_array_take_last_data (amxc_array_t *const array) |
| Takes the data pointer from the last used item in the array. More...
|
|
int | amxc_array_sort (amxc_array_t *const array, amxc_array_it_cmp_t cmp) |
| Sorts the content of the array. More...
|
|