![]() |
(git:b77b4be)
|
An array-based list which grows on demand. When the internal array is full, a new array of twice the size will be allocated and the items are copied over. More...
Data Types | |
type | list_timerenv_type |
Functions/Subroutines | |
logical function, public | list_timerenv_isready (list) |
Test if the given list has been initialized. | |
subroutine, public | list_timerenv_init (list, initial_capacity) |
Allocates the internal data-structures of the given list. This has to be called before any of the other routines. For deallocation call list_[valuetype]_destroy. | |
subroutine, public | list_timerenv_destroy (list) |
Deallocated the internal data-structures of the given list. Caution: If the stored values are pointers, their targets will not get deallocated by this routine. | |
subroutine, public | list_timerenv_set (list, value, pos) |
Assings the given value to the given position in the list. Thereby, the former value at that position gets overwritten. If the position is out of bounds, the program stops. | |
subroutine, public | list_timerenv_push (list, value) |
Appends the given value at the end of the list. | |
subroutine, public | list_timerenv_insert (list, value, pos) |
Inserts the given value at the givenn position within the list. Values which lay behind the insertion-position move one position up. | |
type(timer_env_type) function, pointer, public | list_timerenv_peek (list) |
Returns the last element in the list. Is equivalent to: list_timerenv_get(list, list_timerenv_size(list)) | |
type(timer_env_type) function, pointer, public | list_timerenv_pop (list) |
Returns the last element in the list and removes it. Is equivialent to: value = list_timerenv_get(list, list_timerenv_size(list)) call list_timerenv_del(list, list_timerenv_size(list)) | |
subroutine, public | list_timerenv_clear (list) |
Removes all values from the list. The list itself is not deallocated. | |
type(timer_env_type) function, pointer, public | list_timerenv_get (list, pos) |
Returns the value at the given position from the list. | |
subroutine, public | list_timerenv_del (list, pos) |
Removes the value at the given position from the list. | |
integer function, public | list_timerenv_size (list) |
Returns the current size of the list. | |
An array-based list which grows on demand. When the internal array is full, a new array of twice the size will be allocated and the items are copied over.
This list can also be used as a stack. Have look at list_push(), list_pop() and list_peek().
logical function, public list_timerenv::list_timerenv_isready | ( | type(list_timerenv_type), intent(in) | list | ) |
Test if the given list has been initialized.
list | ... |
Definition at line 61 of file list_timerenv.F.
subroutine, public list_timerenv::list_timerenv_init | ( | type(list_timerenv_type), intent(inout) | list, |
integer, intent(in), optional | initial_capacity | ||
) |
Allocates the internal data-structures of the given list. This has to be called before any of the other routines. For deallocation call list_[valuetype]_destroy.
list | ... |
initial_capacity | The initial size of the internal array (default=11). |
Definition at line 77 of file list_timerenv.F.
subroutine, public list_timerenv::list_timerenv_destroy | ( | type(list_timerenv_type), intent(inout) | list | ) |
Deallocated the internal data-structures of the given list. Caution: If the stored values are pointers, their targets will not get deallocated by this routine.
list | ... |
Definition at line 108 of file list_timerenv.F.
subroutine, public list_timerenv::list_timerenv_set | ( | type(list_timerenv_type), intent(inout) | list, |
type(timer_env_type), intent(in), pointer | value, | ||
integer, intent(in) | pos | ||
) |
Assings the given value to the given position in the list. Thereby, the former value at that position gets overwritten. If the position is out of bounds, the program stops.
list | ... |
value | ... |
pos | Position in the list - musst fulfill 0 < pos < list_size+1. |
Definition at line 132 of file list_timerenv.F.
subroutine, public list_timerenv::list_timerenv_push | ( | type(list_timerenv_type), intent(inout) | list, |
type(timer_env_type), intent(in), pointer | value | ||
) |
Appends the given value at the end of the list.
list | ... |
value | ... |
Definition at line 153 of file list_timerenv.F.
subroutine, public list_timerenv::list_timerenv_insert | ( | type(list_timerenv_type), intent(inout) | list, |
type(timer_env_type), intent(in), pointer | value, | ||
integer, intent(in) | pos | ||
) |
Inserts the given value at the givenn position within the list. Values which lay behind the insertion-position move one position up.
list | ... |
value | ... |
pos | Position in the list - musst fulfill 0 < pos < list_size+2 . |
Definition at line 180 of file list_timerenv.F.
type(timer_env_type) function, pointer, public list_timerenv::list_timerenv_peek | ( | type(list_timerenv_type), intent(inout) | list | ) |
Returns the last element in the list. Is equivalent to: list_timerenv_get(list, list_timerenv_size(list))
list | ... |
Definition at line 216 of file list_timerenv.F.
type(timer_env_type) function, pointer, public list_timerenv::list_timerenv_pop | ( | type(list_timerenv_type), intent(inout) | list | ) |
Returns the last element in the list and removes it. Is equivialent to: value = list_timerenv_get(list, list_timerenv_size(list)) call list_timerenv_del(list, list_timerenv_size(list))
list | ... |
Definition at line 240 of file list_timerenv.F.
subroutine, public list_timerenv::list_timerenv_clear | ( | type(list_timerenv_type), intent(inout) | list | ) |
Removes all values from the list. The list itself is not deallocated.
list | ... |
Definition at line 261 of file list_timerenv.F.
type(timer_env_type) function, pointer, public list_timerenv::list_timerenv_get | ( | type(list_timerenv_type), intent(in) | list, |
integer, intent(in) | pos | ||
) |
Returns the value at the given position from the list.
list | ... |
pos | Position in the list - musst fulfill 0 < pos < list_size+1 . |
Definition at line 284 of file list_timerenv.F.
subroutine, public list_timerenv::list_timerenv_del | ( | type(list_timerenv_type), intent(inout) | list, |
integer, intent(in) | pos | ||
) |
Removes the value at the given position from the list.
list | ... |
pos | Position in the list - musst fulfill 0 < pos < list_size+1 . |
Definition at line 308 of file list_timerenv.F.
integer function, public list_timerenv::list_timerenv_size | ( | type(list_timerenv_type), intent(in) | list | ) |
Returns the current size of the list.
list | ... |
Definition at line 337 of file list_timerenv.F.