Type for a fixed list, that can be used as a list of lists
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=i4), | public | :: | initial_index |
Metadata |
|||
| integer(kind=i4), | public | :: | final_index |
Metadata |
|||
| integer(kind=i4), | public | :: | n | = | 0 | ||
| integer(kind=i4), | public, | allocatable | :: | list(:) | |||
| type(fixed_list_t), | public, | pointer | :: | next | |||
| type(fixed_list_t), | public, | pointer | :: | prev |
Finalize the list
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(fixed_list_t), | intent(inout) | :: | this |
Initialize the fixed list Input: i1 - initial index, i2 - final index If i2 is not present, i1 is used as the size (final index)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fixed_list_t), | intent(inout) | :: | this | |||
| integer(kind=i4), | intent(in) | :: | i1 | |||
| integer(kind=i4), | intent(in), | optional | :: | i2 |
Sum the elements of the fixed list
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fixed_list_t), | intent(in) | :: | this |
Print the fixed list
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fixed_list_t), | intent(in) | :: | this |