| 
    cdcontainers
    0.1.1
    
   Library of data containers and collections for C programming language. 
   | 
 
Functions | |
| static void | cdc_circular_array_set (struct cdc_circular_array *d, size_t index, void *value) | 
| Sets an element at index position to the value. The function is not called to free memory.  More... | |
| enum cdc_stat | cdc_circular_array_insert (struct cdc_circular_array *d, size_t index, void *value) | 
| Inserts value at |index| position in the circular array. If index is 0, the value is prepended to the circular array. If index is cdc_circular_array_size(), the value is appended to the circular array.  More... | |
| void | cdc_circular_array_erase (struct cdc_circular_array *d, size_t index) | 
| Removes an element at index position in the circular arrray.  More... | |
| void | cdc_circular_array_clear (struct cdc_circular_array *d) | 
| Removes all the elements from the circular array.  More... | |
| enum cdc_stat | cdc_circular_array_push_back (struct cdc_circular_array *d, void *value) | 
| Inserts an element at the end of the circular array.  More... | |
| void | cdc_circular_array_pop_back (struct cdc_circular_array *d) | 
| Removes a last element in the circular array.  More... | |
| enum cdc_stat | cdc_circular_array_push_front (struct cdc_circular_array *d, void *value) | 
| Inserts an element at the beginning of the circular array.  More... | |
| void | cdc_circular_array_pop_front (struct cdc_circular_array *d) | 
| Removes a first element in the circular array.  More... | |
| void | cdc_circular_array_swap (struct cdc_circular_array *a, struct cdc_circular_array *b) | 
| Swaps circular arrays a and b. This operation is very fast and never fails.  More... | |
      
  | 
  inlinestatic | 
Sets an element at index position to the value. The function is not called to free memory.
| [in] | d | - cdc_circular_array | 
| [in] | index | - index position where the value will be written | 
| [in] | value | - value | 
| enum cdc_stat cdc_circular_array_insert | ( | struct cdc_circular_array * | d, | 
| size_t | index, | ||
| void * | value | ||
| ) | 
Inserts value at |index| position in the circular array. If index is 0, the value is prepended to the circular array. If index is cdc_circular_array_size(), the value is appended to the circular array.
| [in] | d | - cdc_circular_array | 
| [in] | index | - index position where an element will be inserted | 
| [in] | value | - value | 
| void cdc_circular_array_erase | ( | struct cdc_circular_array * | d, | 
| size_t | index | ||
| ) | 
Removes an element at index position in the circular arrray.
| [in] | d | - cdc_circular_array | 
| [in] | index | - index position where an element will be removed | 
| void cdc_circular_array_clear | ( | struct cdc_circular_array * | d | ) | 
Removes all the elements from the circular array.
| [in] | d | - cdc_circular_array | 
| enum cdc_stat cdc_circular_array_push_back | ( | struct cdc_circular_array * | d, | 
| void * | value | ||
| ) | 
Inserts an element at the end of the circular array.
| [in] | d | - cdc_circular_array | 
| [in] | value | - value | 
| void cdc_circular_array_pop_back | ( | struct cdc_circular_array * | d | ) | 
Removes a last element in the circular array.
| [in] | d | - cdc_circular_array | 
| enum cdc_stat cdc_circular_array_push_front | ( | struct cdc_circular_array * | d, | 
| void * | value | ||
| ) | 
Inserts an element at the beginning of the circular array.
| [in] | d | - cdc_circular_array | 
| [in] | value | - value | 
| void cdc_circular_array_pop_front | ( | struct cdc_circular_array * | d | ) | 
Removes a first element in the circular array.
| [in] | d | - cdc_circular_array | 
| void cdc_circular_array_swap | ( | struct cdc_circular_array * | a, | 
| struct cdc_circular_array * | b | ||
| ) | 
Swaps circular arrays a and b. This operation is very fast and never fails.
| a | - cdc_circular_array | 
| b | - cdc_circular_array | 
 1.8.13