Functions | |
cx_slist_iterator | cx_slist_begin (const cx_slist *list) |
Get list iterator to the beginning of a list. | |
cx_slist_iterator | cx_slist_end (const cx_slist *list) |
Get a list iterator to the end of a list. | |
cx_slist_iterator | cx_slist_next (const cx_slist *list, cx_slist_const_iterator position) |
Get a list iterator to the next list element. | |
void | cx_slist_clear (cx_slist *list) |
Remove all elements from a list. | |
cxbool | cx_slist_empty (const cx_slist *list) |
Check whether a list is empty. | |
cx_slist * | cx_slist_new (void) |
Create a new list without any elements. | |
void | cx_slist_delete (cx_slist *list) |
Destroy a list. | |
void | cx_slist_destroy (cx_slist *list, cx_free_func deallocate) |
Destroy a list and all its elements. | |
cxsize | cx_slist_size (const cx_slist *list) |
Get the actual number of list elements. | |
cxsize | cx_slist_max_size (const cx_slist *list) |
Get the maximum number of list elements possible. | |
void | cx_slist_swap (cx_slist *list1, cx_slist *list2) |
Swap the data of two lists. | |
cxptr | cx_slist_assign (cx_slist *list, cx_slist_iterator position, cxcptr data) |
Assign data to a list position. | |
cxptr | cx_slist_front (const cx_slist *list) |
Get the first element of a list. | |
cxptr | cx_slist_back (const cx_slist *list) |
Get the last element of a list. | |
cxptr | cx_slist_get (const cx_slist *list, cx_slist_const_iterator position) |
Get the data at a given iterator position. | |
cx_slist_iterator | cx_slist_insert (cx_slist *list, cx_slist_iterator position, cxcptr data) |
Insert data into a list at a given iterator position. | |
void | cx_slist_push_front (cx_slist *list, cxcptr data) |
Insert data at the beginning of a list. | |
void | cx_slist_push_back (cx_slist *list, cxcptr data) |
Append data at the end of a list. | |
cx_slist_iterator | cx_slist_erase (cx_slist *list, cx_slist_iterator position, cx_free_func deallocate) |
Erase a list list element. | |
cxptr | cx_slist_extract (cx_slist *list, cx_slist_iterator position) |
Extract a list element. | |
cxptr | cx_slist_pop_front (cx_slist *list) |
Remove the first list element. | |
cxptr | cx_slist_pop_back (cx_slist *list) |
Remove the last element of a list. | |
void | cx_slist_remove (cx_slist *list, cxcptr data) |
Remove all elements with a given value from a list. | |
void | cx_slist_unique (cx_slist *list, cx_compare_func compare) |
Remove duplicates of consecutive elements. | |
void | cx_slist_splice (cx_slist *tlist, cx_slist_iterator position, cx_slist *slist, cx_slist_iterator first, cx_slist_iterator last) |
Move a range of list elements in front of a given position. | |
void | cx_slist_merge (cx_slist *list1, cx_slist *list2, cx_compare_func compare) |
Merge two sorted lists. | |
void | cx_slist_sort (cx_slist *list, cx_compare_func compare) |
Sort all elements of a list using the given comparison function. | |
void | cx_slist_reverse (cx_slist *list) |
Reverse the order of all list elements. |
#include <cxslist.h>
|
Assign data to a list position.
|
|
Get the last element of a list.
|
|
Get list iterator to the beginning of a list.
|
|
Remove all elements from a list.
|
|
Destroy a list.
|
|
Destroy a list and all its elements.
|
|
Check whether a list is empty.
return (cx_slist_size(list) == 0); |
|
Get a list iterator to the end of a list.
|
|
Erase a list 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 a list iterator to the next list element.
|
|
Remove the last element of a list.
|
|
Remove the first list element.
|
|
Append data at the end of a list.
It is equivalent to the statement cx_slist_insert(list, cx_slist_end(list), data); |
|
Insert data at the beginning of a list.
It is equivalent to the statement cx_slist_insert(list, cx_slist_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.
|