|
solidc
Robust collection of general-purpose cross-platform C libraries and data structures designed for rapid and safe development in C
|
#include <slist.h>
Public Attributes | |
| slist_node_t * | head |
| slist_node_t * | tail |
| size_t | size |
| size_t | elem_size |
A singly-linked list data structure. Maintains head and tail pointers for O(1) append operations. Stores elements of uniform size specified at list creation.
| size_t slist::elem_size |
Size in bytes of each element stored in the list.
Definition at line 40 of file slist.h.
Referenced by slist_index_of(), slist_insert(), slist_new(), slist_push_back(), and slist_push_front().
| slist_node_t* slist::head |
Pointer to the first node in the list. NULL if empty.
Definition at line 34 of file slist.h.
Referenced by slist_clear(), slist_get(), slist_index_of(), slist_insert(), slist_new(), slist_pop_front(), slist_push_back(), slist_push_front(), and slist_remove().
| size_t slist::size |
Number of elements currently in the list.
Definition at line 38 of file slist.h.
Referenced by slist_clear(), slist_get(), slist_insert(), slist_new(), slist_pop_front(), slist_push_back(), slist_push_front(), slist_remove(), and slist_size().
| slist_node_t* slist::tail |
Pointer to the last node in the list for O(1) append. NULL if empty.
Definition at line 36 of file slist.h.
Referenced by slist_clear(), slist_new(), slist_pop_front(), slist_push_back(), slist_push_front(), and slist_remove().