Functions | |
| cx_list_iterator | cx_list_begin (const cx_list *list) |
| Get an iterator for the first list element. | |
| cx_list_iterator | cx_list_end (const cx_list *list) |
| Get an iterator for the position after the last list element. | |
| cx_list_iterator | cx_list_next (const cx_list *list, cx_list_const_iterator position) |
| Get an iterator for the next list element. | |
| cx_list_iterator | cx_list_previous (const cx_list *list, cx_list_const_iterator position) |
| Get an iterator for the previous list element. | |
| void | cx_list_clear (cx_list *list) |
| Remove all elements from a list. | |
| cxbool | cx_list_empty (const cx_list *list) |
| Check whether a list is empty. | |
| cx_list * | cx_list_new (void) |
| Create a new list without any elements. | |
| void | cx_list_delete (cx_list *list) |
| Destroy a list. | |
| void | cx_list_destroy (cx_list *list, cx_free_func deallocate) |
| Destroy a list and all its elements. | |
| cxsize | cx_list_size (const cx_list *list) |
| Get the actual number of list elements. | |
| cxsize | cx_list_max_size (const cx_list *list) |
| Get the maximum number of list elements possible. | |
| void | cx_list_swap (cx_list *list1, cx_list *list2) |
| Swap the data of two lists. | |
| cxptr | cx_list_assign (cx_list *list, cx_list_iterator position, cxcptr data) |
| Assign data to a list element. | |
| cxptr | cx_list_front (const cx_list *list) |
| Get the first element of a list. | |
| cxptr | cx_list_back (const cx_list *list) |
| Get the last element of a list. | |
| cxptr | cx_list_get (const cx_list *list, cx_list_const_iterator position) |
| Get the data at a given iterator position. | |
| cx_list_iterator | cx_list_insert (cx_list *list, cx_list_iterator position, cxcptr data) |
| Insert data into a list at a given iterator position. | |
| void | cx_list_push_front (cx_list *list, cxcptr data) |
| Insert data at the beginning of a list. | |
| void | cx_list_push_back (cx_list *list, cxcptr data) |
| Append data at the end of a list. | |
| cx_list_iterator | cx_list_erase (cx_list *list, cx_list_iterator position, cx_free_func deallocate) |
| Erase a list element. | |
| cxptr | cx_list_extract (cx_list *list, cx_list_iterator position) |
| Extract a list element. | |
| cxptr | cx_list_pop_front (cx_list *list) |
| Remove the first list element. | |
| cxptr | cx_list_pop_back (cx_list *list) |
| Remove the last element of a list. | |
| void | cx_list_remove (cx_list *list, cxcptr data) |
| Remove all elements with a given value from a list. | |
| void | cx_list_unique (cx_list *list, cx_compare_func compare) |
| Remove duplicates of consecutive elements. | |
| void | cx_list_splice (cx_list *tlist, cx_list_iterator position, cx_list *slist, cx_list_iterator first, cx_list_iterator last) |
| Move a range of list elements in front of a given position. | |
| void | cx_list_merge (cx_list *list1, cx_list *list2, cx_compare_func compare) |
| Merge two sorted lists. | |
| void | cx_list_sort (cx_list *list, cx_compare_func compare) |
| Sort all elements of a list using the given comparison function. | |
| void | cx_list_reverse (cx_list *list) |
| Reverse the order of all list elements. | |
#include <cxlist.h>
|
||||||||||||||||
|
Assign data to a list element.
|
|
|
Get the last element of a list.
|
|
|
Get an iterator for the first list element.
|
|
|
Remove all elements from a list.
|
|
|
Destroy a list.
|
|
||||||||||||
|
Destroy a list and all its elements.
|
|
|
Check whether a list is empty.
return (cx_list_size(list) == 0); |
|
|
Get an iterator for the position after the last list element.
|
|
||||||||||||||||
|
Erase a list element.
|
|
||||||||||||
|
Extract a list element.
|
|
|
Get the first element of a list.
|
|
||||||||||||
|
Get the data at a given iterator position.
|
|
||||||||||||||||
|
Insert data into a list at a given iterator position.
|
|
|
Get the maximum number of list elements possible.
|
|
||||||||||||||||
|
Merge two sorted lists.
The list list2 is consumed by this process, i.e. after the successful merging of the two lists, list list2 will be empty. |
|
|
Create a new list without any elements.
|
|
||||||||||||
|
Get an iterator for the next list element.
|
|
|
Remove the last element of a list.
It is equivalent to the statement cx_list_extract(list, cx_list_previous(list, cx_list_end(list))); |
|
|
Remove the first list element.
It is equivalent to the statement cx_list_extract(list, cx_list_begin(list)); |
|
||||||||||||
|
Get an iterator for the previous list element.
|
|
||||||||||||
|
Append data at the end of a list.
It is equivalent to the statement cx_list_insert(list, cx_list_end(list), data); |
|
||||||||||||
|
Insert data at the beginning of a list.
It is equivalent to the statement cx_list_insert(list, cx_list_begin(list), data); |
|
||||||||||||
|
Remove all elements with a given value from a list.
|
|
|
Reverse the order of all list elements.
|
|
|
Get the actual number of list elements.
|
|
||||||||||||
|
Sort all elements of a list using the given comparison function.
|
|
||||||||||||||||||||||||
|
Move a range of list elements in front of a given position.
|
|
||||||||||||
|
Swap the data of two lists.
|
|
||||||||||||
|
Remove duplicates of consecutive elements.
|
1.4.1