Constructor for stringlist Returns an instance of type stringlist_type Specifications
Constructor with no argument Returns a new instance of type stringlist
Constructor to convert chararray to stringlist Returns a new instance of type stringlist
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in), | dimension(:) | :: | array |
Constructor to convert stringarray to stringlist Returns a new instance of type stringlist
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(string_type), | intent(in), | dimension(:) | :: | array |
Resets stringlist 'list' to an empy stringlist of len 0 Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list |
Returns the string present at stringlist_index 'idx' in stringlist 'list' Returns string_type instance
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(in) | :: | list | |||
type(stringlist_index_type), | intent(in) | :: | idx |
Returns the string present at stringlist_index 'idx' in stringlist 'list' Returns string_type instance
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(in) | :: | list | |||
type(stringlist_index_type), | intent(in) | :: | idx |
Inserts character scalar 'string' AT stringlist_index 'idx' in stringlist 'list' Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | |||
type(stringlist_index_type), | intent(in) | :: | idx | |||
character(len=*), | intent(in) | :: | string |
Inserts string 'string' AT stringlist_index 'idx' in stringlist 'list' Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | |||
type(stringlist_index_type), | intent(in) | :: | idx | |||
type(string_type), | intent(in) | :: | string |
Inserts stringlist 'slist' AT stringlist_index 'idx' in stringlist 'list' Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | |||
type(stringlist_index_type), | intent(in) | :: | idx | |||
type(stringlist_type), | intent(in) | :: | slist |
Inserts chararray 'carray' AT stringlist_index 'idx' in stringlist 'list' Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | |||
type(stringlist_index_type), | intent(in) | :: | idx | |||
character(len=*), | intent(in), | dimension(:) | :: | carray |
Inserts stringarray 'sarray' AT stringlist_index 'idx' in stringlist 'list' Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | |||
type(stringlist_index_type), | intent(in) | :: | idx | |||
type(string_type), | intent(in), | dimension(:) | :: | sarray |
Inserts character scalar 'string' AT stringlist_index 'idx' in stringlist 'list' Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | |||
type(stringlist_index_type), | intent(in) | :: | idx | |||
character(len=*), | intent(in) | :: | string |
Inserts chararray 'carray' AT stringlist_index 'idx' in stringlist 'list' Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | |||
type(stringlist_index_type), | intent(in) | :: | idx | |||
character(len=*), | intent(in), | dimension(:) | :: | carray |
Inserts string 'string' AT stringlist_index 'idx' in stringlist 'list' Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | |||
type(stringlist_index_type), | intent(in) | :: | idx | |||
type(string_type), | intent(in) | :: | string |
Inserts stringarray 'sarray' AT stringlist_index 'idx' in stringlist 'list' Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | |||
type(stringlist_index_type), | intent(in) | :: | idx | |||
type(string_type), | intent(in), | dimension(:) | :: | sarray |
Inserts stringlist 'slist' AT stringlist_index 'idx' in stringlist 'list' Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | |||
type(stringlist_index_type), | intent(in) | :: | idx | |||
type(stringlist_type), | intent(in) | :: | slist |
Inserts string 'string' BEFORE integer index 'idxn' in the underlying stringarray Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | Not a part of public API |
||
integer, | intent(in) | :: | idxn | |||
type(string_type), | intent(in) | :: | string |
Inserts stringlist 'slist' BEFORE integer index 'idxn' in the underlying stringarray Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | Not a part of public API |
||
integer, | intent(in) | :: | idxn | |||
type(stringlist_type), | intent(in) | :: | slist |
Inserts chararray 'carray' BEFORE integer index 'idxn' in the underlying stringarray Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | Not a part of public API |
||
integer, | intent(in) | :: | idxn | |||
character(len=*), | intent(in), | dimension(:) | :: | carray |
Inserts stringarray 'sarray' BEFORE integer index 'idxn' in the underlying stringarray Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | Not a part of public API |
||
integer, | intent(in) | :: | idxn | |||
type(string_type), | intent(in), | dimension(:) | :: | sarray |
Inserts chararray 'carray' BEFORE integer index 'idxn' in the underlying stringarray Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | Not a part of public API |
||
integer, | intent(in) | :: | idxn | |||
character(len=*), | intent(in), | dimension(:) | :: | carray |
Inserts string 'string' BEFORE integer index 'idxn' in the underlying stringarray Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | Not a part of public API |
||
integer, | intent(in) | :: | idxn | |||
type(string_type), | intent(in) | :: | string |
Inserts stringarray 'sarray' BEFORE integer index 'idxn' in the underlying stringarray Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | Not a part of public API |
||
integer, | intent(in) | :: | idxn | |||
type(string_type), | intent(in), | dimension(:) | :: | sarray |
Inserts stringlist 'slist' BEFORE integer index 'idxn' in the underlying stringarray Modifies the input stringlist 'list'
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(inout) | :: | list | Not a part of public API |
||
integer, | intent(in) | :: | idxn | |||
type(stringlist_type), | intent(in) | :: | slist |
Returns the len (length) of the list Returns an integer
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(in) | :: | list |
Converts a forward index OR backward index to its equivalent integer index idxn Returns an integer
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(in) | :: | list | Not a part of public API |
||
type(stringlist_index_type), | intent(in) | :: | idx |
Converts a forward index OR a backward index to an integer index at which the new element will be present post insertion (i.e. in future) Returns an integer
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stringlist_type), | intent(in) | :: | list | Not a part of public API |
||
type(stringlist_index_type), | intent(in) | :: | idx |
type stringlist_type
private
type(string_type), dimension(:), allocatable :: stringarray
contains
private
procedure, public :: clear => clear_list
procedure, public :: len => length_list
procedure :: to_future_at_idxn => convert_to_future_at_idxn
procedure :: to_current_idxn => convert_to_current_idxn
procedure :: insert_at_char_idx => insert_at_char_idx_wrap
procedure :: insert_at_string_idx => insert_at_string_idx_wrap
procedure :: insert_at_stringlist_idx => insert_at_stringlist_idx_wrap
procedure :: insert_at_chararray_idx => insert_at_chararray_idx_wrap
procedure :: insert_at_stringarray_idx => insert_at_stringarray_idx_wrap
generic, public :: insert_at => insert_at_char_idx, &
insert_at_string_idx, &
insert_at_stringlist_idx, &
insert_at_chararray_idx, &
insert_at_stringarray_idx
procedure :: insert_before_string_int => insert_before_string_int_impl
procedure :: insert_before_stringlist_int => insert_before_stringlist_int_impl
procedure :: insert_before_chararray_int => insert_before_chararray_int_impl
procedure :: insert_before_stringarray_int => insert_before_stringarray_int_impl
generic :: insert_before => insert_before_string_int, &
insert_before_stringlist_int, &
insert_before_chararray_int, &
insert_before_stringarray_int
procedure :: get_string_idx => get_string_idx_wrap
generic, public :: get => get_string_idx
end type stringlist_type