Module to provide smart growing data structures.
The dynamic arrays provided by this module are capable of handling lists of values, which might need to grow over time. Removal of entries is not possible directly. A ranking list for the indices is maintained to fast lookups of given values by a binary search. This allows for the efficient handling of lists with unique entries. The complete module might be put into a CoCo Text template, to create new modules of this object for different types. For now, two different templates are used for the declaration part and the implementation part.
initialize the dynamic array
initialization of a dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type), | intent(out) | :: | me | |||
integer, | intent(in), | optional | :: | length |
destroy the dynamic array
destruction of a dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type), | intent(inout) | :: | me |
append a value to the dynamic array and return its position.
appending a value to the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type) | :: | me | ||||
integer(kind=long_k), | intent(in) | :: | val | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
|
integer, | intent(out), | optional | :: | pos | position in the array, if the value is found |
|
logical, | intent(out), | optional | :: | wasadded | flag to indicate, if val was newly added |
appending a sorted list of values to the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type) | :: | me | ||||
integer(kind=long_k), | intent(in) | :: | val(:) | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
|
integer, | intent(out), | optional | :: | pos(:) | position in the array, the values are found at. |
|
logical, | intent(out), | optional | :: | wasadded(:) | flag to indicate, if val was newly added |
truncate the array, meaning cut off the trailing empty entries
truncate the array after the last valid entry and hence cut off the empty trailing empty entries
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type) | :: | me |
empty the array, reset nvals to be 0
empty all contents of the array without changing the size or status of any array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type) | :: | me |
fix the dynamic array, meaning: store the array in the sorted order and cut off the trailing empty entries
fixing the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type) | :: | me |
increase the size of the container for the array.
expanding the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type) | :: | me | ||||
integer, | optional | :: | increment | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
return the position of a given value in the array val, which is what you usually want to know. it is the index of a given value
the actual position of a given value in the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type), | intent(in) | :: | me | |||
integer(kind=long_k), | intent(in) | :: | val | |||
logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the position of the next entry in the sorted list should be returned instead, if val is not found. |
|
integer, | intent(in), | optional | :: | lower | ||
integer, | intent(in), | optional | :: | upper |
return the position of a given value in the list 'sorted'. this is mainly for internal usage. the sorted list is only a pointer list to the actual values thus, in order to get the index of a given value, you need to look up the entry in the sorted list. this is done by the positionofval routine
return the sorted position of a value in the given dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type), | intent(in) | :: | me | |||
integer(kind=long_k), | intent(in) | :: | val | |||
logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the next entry in the list should be returned, if the searched one is not found. |
|
integer, | intent(in), | optional | :: | lower | ||
integer, | intent(in), | optional | :: | upper |
initialize the dynamic array
initialization of a dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type), | intent(out) | :: | me | |||
integer, | intent(in), | optional | :: | length |
destroy the dynamic array
destruction of a dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type), | intent(inout) | :: | me |
append a value to the dynamic array and return its position.
appending a value to the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type) | :: | me | ||||
integer, | intent(in) | :: | val | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
|
integer, | intent(out), | optional | :: | pos | position in the array, if the value is found |
|
logical, | intent(out), | optional | :: | wasadded | flag to indicate, if val was newly added |
appending a sorted list of values to the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type) | :: | me | ||||
integer, | intent(in) | :: | val(:) | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
|
integer, | intent(out), | optional | :: | pos(:) | position in the array, the values are found at. |
|
logical, | intent(out), | optional | :: | wasadded(:) | flag to indicate, if val was newly added |
truncate the array, meaning cut off the trailing empty entries
truncate the array after the last valid entry and hence cut off the empty trailing empty entries
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type) | :: | me |
empty the array, reset nvals to be 0
empty all contents of the array without changing the size or status of any array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type) | :: | me |
fix the dynamic array, meaning: store the array in the sorted order and cut off the trailing empty entries
fixing the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type) | :: | me |
increase the size of the container for the array.
expanding the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type) | :: | me | ||||
integer, | optional | :: | increment | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
return the position of a given value in the array val, which is what you usually want to know. it is the index of a given value
the actual position of a given value in the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type), | intent(in) | :: | me | |||
integer, | intent(in) | :: | val | |||
logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the position of the next entry in the sorted list should be returned instead, if val is not found. |
|
integer, | intent(in), | optional | :: | lower | ||
integer, | intent(in), | optional | :: | upper |
return the position of a given value in the list 'sorted'. this is mainly for internal usage. the sorted list is only a pointer list to the actual values thus, in order to get the index of a given value, you need to look up the entry in the sorted list. this is done by the positionofval routine
return the sorted position of a value in the given dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type), | intent(in) | :: | me | |||
integer, | intent(in) | :: | val | |||
logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the next entry in the list should be returned, if the searched one is not found. |
|
integer, | intent(in), | optional | :: | lower | ||
integer, | intent(in), | optional | :: | upper |
initialize the dynamic array
initialization of a dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type), | intent(out) | :: | me | |||
integer, | intent(in), | optional | :: | length |
destroy the dynamic array
destruction of a dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type), | intent(inout) | :: | me |
append a value to the dynamic array and return its position.
appending a value to the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type) | :: | me | ||||
real(kind=rk), | intent(in) | :: | val | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
|
integer, | intent(out), | optional | :: | pos | position in the array, if the value is found |
|
logical, | intent(out), | optional | :: | wasadded | flag to indicate, if val was newly added |
appending a sorted list of values to the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type) | :: | me | ||||
real(kind=rk), | intent(in) | :: | val(:) | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
|
integer, | intent(out), | optional | :: | pos(:) | position in the array, the values are found at. |
|
logical, | intent(out), | optional | :: | wasadded(:) | flag to indicate, if val was newly added |
truncate the array, meaning cut off the trailing empty entries
truncate the array after the last valid entry and hence cut off the empty trailing empty entries
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type) | :: | me |
empty the array, reset nvals to be 0
empty all contents of the array without changing the size or status of any array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type) | :: | me |
fix the dynamic array, meaning: store the array in the sorted order and cut off the trailing empty entries
fixing the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type) | :: | me |
increase the size of the container for the array.
expanding the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type) | :: | me | ||||
integer, | optional | :: | increment | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
return the position of a given value in the array val, which is what you usually want to know. it is the index of a given value
the actual position of a given value in the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type), | intent(in) | :: | me | |||
real(kind=rk), | intent(in) | :: | val | |||
logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the position of the next entry in the sorted list should be returned instead, if val is not found. |
|
integer, | intent(in), | optional | :: | lower | ||
integer, | intent(in), | optional | :: | upper |
return the position of a given value in the list 'sorted'. this is mainly for internal usage. the sorted list is only a pointer list to the actual values thus, in order to get the index of a given value, you need to look up the entry in the sorted list. this is done by the positionofval routine
return the sorted position of a value in the given dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type), | intent(in) | :: | me | |||
real(kind=rk), | intent(in) | :: | val | |||
logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the next entry in the list should be returned, if the searched one is not found. |
|
integer, | intent(in), | optional | :: | lower | ||
integer, | intent(in), | optional | :: | upper |
initialize the dynamic array
initialization of a dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type), | intent(out) | :: | me | |||
integer, | intent(in), | optional | :: | length |
destroy the dynamic array
destruction of a dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type), | intent(inout) | :: | me |
append a value to the dynamic array and return its position.
appending a value to the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type) | :: | me | ||||
character(len=*), | intent(in) | :: | val | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
|
integer, | intent(out), | optional | :: | pos | position in the array, if the value is found |
|
logical, | intent(out), | optional | :: | wasadded | flag to indicate, if val was newly added |
appending a sorted list of values to the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type) | :: | me | ||||
character(len=*), | intent(in) | :: | val(:) | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
|
integer, | intent(out), | optional | :: | pos(:) | position in the array, the values are found at. |
|
logical, | intent(out), | optional | :: | wasadded(:) | flag to indicate, if val was newly added |
truncate the array, meaning cut off the trailing empty entries
truncate the array after the last valid entry and hence cut off the empty trailing empty entries
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type) | :: | me |
empty the array, reset nvals to be 0
empty all contents of the array without changing the size or status of any array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type) | :: | me |
fix the dynamic array, meaning: store the array in the sorted order and cut off the trailing empty entries
fixing the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type) | :: | me |
increase the size of the container for the array.
expanding the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type) | :: | me | ||||
integer, | optional | :: | increment | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
return the position of a given value in the array val, which is what you usually want to know. it is the index of a given value
the actual position of a given value in the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type), | intent(in) | :: | me | |||
character(len=*), | intent(in) | :: | val | |||
logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the position of the next entry in the sorted list should be returned instead, if val is not found. |
|
integer, | intent(in), | optional | :: | lower | ||
integer, | intent(in), | optional | :: | upper |
return the position of a given value in the list 'sorted'. this is mainly for internal usage. the sorted list is only a pointer list to the actual values thus, in order to get the index of a given value, you need to look up the entry in the sorted list. this is done by the positionofval routine
return the sorted position of a value in the given dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type), | intent(in) | :: | me | |||
character(len=*), | intent(in) | :: | val | |||
logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the next entry in the list should be returned, if the searched one is not found. |
|
integer, | intent(in), | optional | :: | lower | ||
integer, | intent(in), | optional | :: | upper |
dynamic array (da) type for integer(kind=long_k)
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | nvals | = | 0 | ||
integer, | public | :: | containersize | = | 0 | ||
integer(kind=long_k), | public, | allocatable | :: | val(:) | |||
integer, | public, | allocatable | :: | sorted(:) |
dynamic array (da) type for integer
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | nvals | = | 0 | ||
integer, | public | :: | containersize | = | 0 | ||
integer, | public, | allocatable | :: | val(:) | |||
integer, | public, | allocatable | :: | sorted(:) |
dynamic array (da) type for real(kind=rk)
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | nvals | = | 0 | ||
integer, | public | :: | containersize | = | 0 | ||
real(kind=rk), | public, | allocatable | :: | val(:) | |||
integer, | public, | allocatable | :: | sorted(:) |
dynamic array (da) type for character(len=labellen)
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | nvals | = | 0 | ||
integer, | public | :: | containersize | = | 0 | ||
character(len=labellen), | public, | allocatable | :: | val(:) | |||
integer, | public, | allocatable | :: | sorted(:) |
return the sorted position of a value in the given dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type), | intent(in) | :: | me | |||
integer(kind=long_k), | intent(in) | :: | val | |||
logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the next entry in the list should be returned, if the searched one is not found. |
|
integer, | intent(in), | optional | :: | lower | ||
integer, | intent(in), | optional | :: | upper |
the actual position of a given value in the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type), | intent(in) | :: | me | |||
integer(kind=long_k), | intent(in) | :: | val | |||
logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the position of the next entry in the sorted list should be returned instead, if val is not found. |
|
integer, | intent(in), | optional | :: | lower | ||
integer, | intent(in), | optional | :: | upper |
return the sorted position of a value in the given dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type), | intent(in) | :: | me | |||
integer, | intent(in) | :: | val | |||
logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the next entry in the list should be returned, if the searched one is not found. |
|
integer, | intent(in), | optional | :: | lower | ||
integer, | intent(in), | optional | :: | upper |
the actual position of a given value in the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type), | intent(in) | :: | me | |||
integer, | intent(in) | :: | val | |||
logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the position of the next entry in the sorted list should be returned instead, if val is not found. |
|
integer, | intent(in), | optional | :: | lower | ||
integer, | intent(in), | optional | :: | upper |
return the sorted position of a value in the given dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type), | intent(in) | :: | me | |||
real(kind=rk), | intent(in) | :: | val | |||
logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the next entry in the list should be returned, if the searched one is not found. |
|
integer, | intent(in), | optional | :: | lower | ||
integer, | intent(in), | optional | :: | upper |
the actual position of a given value in the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type), | intent(in) | :: | me | |||
real(kind=rk), | intent(in) | :: | val | |||
logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the position of the next entry in the sorted list should be returned instead, if val is not found. |
|
integer, | intent(in), | optional | :: | lower | ||
integer, | intent(in), | optional | :: | upper |
return the sorted position of a value in the given dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type), | intent(in) | :: | me | |||
character(len=*), | intent(in) | :: | val | |||
logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the next entry in the list should be returned, if the searched one is not found. |
|
integer, | intent(in), | optional | :: | lower | ||
integer, | intent(in), | optional | :: | upper |
the actual position of a given value in the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type), | intent(in) | :: | me | |||
character(len=*), | intent(in) | :: | val | |||
logical, | intent(in), | optional | :: | nextifnotfound | flag to indicate, if the position of the next entry in the sorted list should be returned instead, if val is not found. |
|
integer, | intent(in), | optional | :: | lower | ||
integer, | intent(in), | optional | :: | upper |
initialization of a dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type), | intent(out) | :: | me | |||
integer, | intent(in), | optional | :: | length |
destruction of a dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type), | intent(inout) | :: | me |
appending a value to the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type) | :: | me | ||||
integer(kind=long_k), | intent(in) | :: | val | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
|
integer, | intent(out), | optional | :: | pos | position in the array, if the value is found |
|
logical, | intent(out), | optional | :: | wasadded | flag to indicate, if val was newly added |
appending a sorted list of values to the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type) | :: | me | ||||
integer(kind=long_k), | intent(in) | :: | val(:) | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
|
integer, | intent(out), | optional | :: | pos(:) | position in the array, the values are found at. |
|
logical, | intent(out), | optional | :: | wasadded(:) | flag to indicate, if val was newly added |
truncate the array after the last valid entry and hence cut off the empty trailing empty entries
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type) | :: | me |
empty all contents of the array without changing the size or status of any array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type) | :: | me |
fixing the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type) | :: | me |
expanding the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type) | :: | me | ||||
integer, | optional | :: | increment | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
initialization of a dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type), | intent(out) | :: | me | |||
integer, | intent(in), | optional | :: | length |
destruction of a dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type), | intent(inout) | :: | me |
appending a value to the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type) | :: | me | ||||
integer, | intent(in) | :: | val | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
|
integer, | intent(out), | optional | :: | pos | position in the array, if the value is found |
|
logical, | intent(out), | optional | :: | wasadded | flag to indicate, if val was newly added |
appending a sorted list of values to the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type) | :: | me | ||||
integer, | intent(in) | :: | val(:) | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
|
integer, | intent(out), | optional | :: | pos(:) | position in the array, the values are found at. |
|
logical, | intent(out), | optional | :: | wasadded(:) | flag to indicate, if val was newly added |
truncate the array after the last valid entry and hence cut off the empty trailing empty entries
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type) | :: | me |
empty all contents of the array without changing the size or status of any array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type) | :: | me |
fixing the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type) | :: | me |
expanding the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_intarray_type) | :: | me | ||||
integer, | optional | :: | increment | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
initialization of a dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type), | intent(out) | :: | me | |||
integer, | intent(in), | optional | :: | length |
destruction of a dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type), | intent(inout) | :: | me |
appending a value to the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type) | :: | me | ||||
real(kind=rk), | intent(in) | :: | val | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
|
integer, | intent(out), | optional | :: | pos | position in the array, if the value is found |
|
logical, | intent(out), | optional | :: | wasadded | flag to indicate, if val was newly added |
appending a sorted list of values to the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type) | :: | me | ||||
real(kind=rk), | intent(in) | :: | val(:) | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
|
integer, | intent(out), | optional | :: | pos(:) | position in the array, the values are found at. |
|
logical, | intent(out), | optional | :: | wasadded(:) | flag to indicate, if val was newly added |
truncate the array after the last valid entry and hence cut off the empty trailing empty entries
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type) | :: | me |
empty all contents of the array without changing the size or status of any array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type) | :: | me |
fixing the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type) | :: | me |
expanding the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_realarray_type) | :: | me | ||||
integer, | optional | :: | increment | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
initialization of a dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type), | intent(out) | :: | me | |||
integer, | intent(in), | optional | :: | length |
destruction of a dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type), | intent(inout) | :: | me |
appending a value to the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type) | :: | me | ||||
character(len=*), | intent(in) | :: | val | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
|
integer, | intent(out), | optional | :: | pos | position in the array, if the value is found |
|
logical, | intent(out), | optional | :: | wasadded | flag to indicate, if val was newly added |
appending a sorted list of values to the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type) | :: | me | ||||
character(len=*), | intent(in) | :: | val(:) | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |
|
integer, | intent(out), | optional | :: | pos(:) | position in the array, the values are found at. |
|
logical, | intent(out), | optional | :: | wasadded(:) | flag to indicate, if val was newly added |
truncate the array after the last valid entry and hence cut off the empty trailing empty entries
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type) | :: | me |
empty all contents of the array without changing the size or status of any array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type) | :: | me |
fixing the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type) | :: | me |
expanding the dynamic array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_labelarray_type) | :: | me | ||||
integer, | optional | :: | increment | |||
integer, | intent(in), | optional | :: | length | optional length to expand the array |