Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(routine_stat_type), | private, | POINTER | :: | value |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(private_item_type_routinestat), | private, | POINTER | :: | p | => | Null() |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(private_item_p_type_routinestat), | private, | DIMENSION(:), POINTER | :: | arr | => | Null() | |
integer, | private | :: | size | = | -1 |
Test if the given list has been initialized.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_routinestat_type), | intent(in) | :: | list |
Returns the last element in the list. Is equivalent to: list_routinestat_get(list, list_routinestat_size(list))
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_routinestat_type), | intent(inout) | :: | list |
Returns the last element in the list and removes it. Is equivialent to: value = list_routinestat_get(list, list_routinestat_size(list)) call list_routinestat_del(list, list_routinestat_size(list))
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_routinestat_type), | intent(inout) | :: | list |
Returns the value at the given position from the list.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_routinestat_type), | intent(in) | :: | list | |||
integer, | intent(in) | :: | pos |
Position in the list - must fulfill 0 < pos < list_size+1 . |
Returns the current size of the list.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_routinestat_type), | intent(in) | :: | list |
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.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_routinestat_type), | intent(inout) | :: | list | |||
integer, | intent(in), | optional | :: | initial_capacity |
The initial size of the internal array (default=11). |
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.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_routinestat_type), | intent(inout) | :: | list |
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.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_routinestat_type), | intent(inout) | :: | list | |||
type(routine_stat_type), | intent(in), | POINTER | :: | value | ||
integer, | intent(in) | :: | pos |
Position in the list - must fulfill 0 < pos < list_size+1. |
Appends the given value at the end of the list.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_routinestat_type), | intent(inout) | :: | list | |||
type(routine_stat_type), | intent(in), | POINTER | :: | value |
Inserts the given value at the given position within the list. Values which lay behind the insertion-position move one position up.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_routinestat_type), | intent(inout) | :: | list | |||
type(routine_stat_type), | intent(in), | POINTER | :: | value | ||
integer, | intent(in) | :: | pos |
Position in the list - must fulfill 0 < pos < list_size+2 . |
Removes all values from the list. The list itself is not deallocated.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_routinestat_type), | intent(inout) | :: | list |
Removes the value at the given position from the list.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_routinestat_type), | intent(inout) | :: | list | |||
integer, | intent(in) | :: | pos |
Position in the list - must fulfill 0 < pos < list_size+1 . |
Internal routine for changing the size of the internal array.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_routinestat_type), | intent(inout) | :: | list | |||
integer, | intent(in) | :: | new_capacity |