|
| subroutine, public | cp_linked_list_fm::cp_sll_fm_create (sll, first_el, rest) |
| | allocates and initializes a single linked list
|
| |
| subroutine, public | cp_linked_list_fm::cp_sll_fm_dealloc (sll) |
| | deallocates the singly linked list starting at sll. Does not work if loops are present!
|
| |
| type(cp_fm_type) function, pointer, public | cp_linked_list_fm::cp_sll_fm_get_first_el (sll) |
| | returns the first element stored in the list
|
| |
| type(cp_sll_fm_type) function, pointer, public | cp_linked_list_fm::cp_sll_fm_get_rest (sll, iter) |
| | returns the rest of the list
|
| |
| integer function, public | cp_linked_list_fm::cp_sll_fm_get_length (sll) |
| | returns the length of the list
|
| |
| type(cp_fm_type) function, pointer, public | cp_linked_list_fm::cp_sll_fm_get_el_at (sll, index) |
| | returns the element at the given index
|
| |
| subroutine, public | cp_linked_list_fm::cp_sll_fm_set_el_at (sll, index, value) |
| | sets the element at the given index
|
| |
| logical function, public | cp_linked_list_fm::cp_sll_fm_next (iterator, el_att) |
| | returns true if the actual element is valid (i.e. iterator ont at end) moves the iterator to the next element
|
| |
| subroutine, public | cp_linked_list_fm::cp_sll_fm_insert_el (sll, el) |
| | insert an element at the beginning of the list
|
| |
| subroutine, public | cp_linked_list_fm::cp_sll_fm_rm_first_el (sll) |
| | remove the first element of the linked list
|
| |
| subroutine, public | cp_linked_list_fm::cp_sll_fm_insert_el_at (sll, el, index) |
| | inserts the element at the given index
|
| |
| subroutine, public | cp_linked_list_fm::cp_sll_fm_rm_el_at (sll, index) |
| | removes the element at the given index
|
| |
| subroutine, public | cp_linked_list_fm::cp_sll_fm_rm_all_el (sll) |
| | removes all the elements from the list
|
| |
| type(cp_fm_p_type) function, dimension(:), pointer, public | cp_linked_list_fm::cp_sll_fm_to_array (sll) |
| | returns a newly allocated array with the same contents as the linked list
|
| |