This is a derived type of list, where we can create a list instance and do some basic operations such as GET, APPEND, SPLIT.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(List_content_), | public, | allocatable | :: | content(:) |
This attribute is no used. |
||
| type(List_fix_content_), | public, | allocatable | :: | fcontent(:) |
This attribute is active. All entities in a list are contained in this list. |
||
| type(List_), | public, | allocatable | :: | list(:) |
A list instance can have an array of list. |
GET operation for a list instance.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(List_), | intent(in) | :: | this | |||
| integer(kind=int32), | intent(in) | :: | idx |
APPEND operation for a list instance.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(List_), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | char |
Initialize and allocate list by a number of content.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(List_), | intent(inout) | :: | this | |||
| integer(kind=int32), | intent(in) | :: | length |
It shows the all content in the terminal.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(List_), | intent(in) | :: | this |
It returns a number of entities of list.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(List_), | intent(in) | :: | this |
It shows the help of the listclass.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(List_), | intent(in) | :: | this |
It sets entities by splitting a string by a delimiter.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(List_), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | str_val | |||
| character(len=*), | intent(in) | :: | delimiter |