(git:b77b4be)
Loading...
Searching...
No Matches
cp_linked_list_fm.F File Reference

Go to the source code of this file.

Data Types

interface  cp_linked_list_fm::cp_create
 
interface  cp_linked_list_fm::cp_dealloc
 
interface  cp_linked_list_fm::cp_next
 
interface  cp_linked_list_fm::cp_get_first_el
 
interface  cp_linked_list_fm::cp_get_rest
 
interface  cp_linked_list_fm::cp_get_length
 
interface  cp_linked_list_fm::cp_get_element_at
 
interface  cp_linked_list_fm::cp_set_element_at
 
interface  cp_linked_list_fm::cp_insert
 
interface  cp_linked_list_fm::cp_remove_el
 
interface  cp_linked_list_fm::cp_remove_first_el
 
interface  cp_linked_list_fm::cp_remove_all
 
interface  cp_linked_list_fm::cp_to_array
 
type  cp_linked_list_fm::cp_sll_fm_type
 represent a single linked list that stores pointers to the elements More...
 
type  cp_linked_list_fm::cp_sll_fm_p_type
 pointer to a linked list (to make arrays of pointers) More...
 

Modules

module  cp_linked_list_fm
 

Functions/Subroutines

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