linked list More...
Data Types | |
type | tpartitionedstring |
type | tpartitionedstringlist |
Functions/Subroutines | |
subroutine | add (this, string) |
add element More... | |
subroutine | show (this) |
prints all elements More... | |
subroutine | free (this) |
empties list and frees associated memory More... | |
recursive subroutine | finalize (this) |
empties list and frees associated memory More... | |
subroutine | finalizearray (this) |
cleans entire array of linke lists More... | |
logical function | keyexists (this, key) |
reports wether a given key (string value at first position) exists in the list More... | |
integer function | countkeys (this, key) |
count number of key appearances More... | |
real(preal) function | getfloat (this, key, defaultVal) |
gets float value of for a given key from a linked list More... | |
integer function | getint (this, key, defaultVal) |
gets integer value of for a given key from a linked list More... | |
character(len=pstringlen) function | getstring (this, key, defaultVal, raw) |
gets string value of for a given key from a linked list More... | |
real(preal) function, dimension(:), allocatable | getfloats (this, key, defaultVal, requiredSize) |
gets array of float values of for a given key from a linked list More... | |
integer function, dimension(:), allocatable | getints (this, key, defaultVal, requiredSize) |
gets array of integer values of for a given key from a linked list More... | |
character(len=pstringlen) function, dimension(:), allocatable | getstrings (this, key, defaultVal, raw) |
gets array of string values of for a given key from a linked list More... | |
linked list
subroutine list::add | ( | class(tpartitionedstringlist), intent(in), target | this, |
character(len=*), intent(in) | string | ||
) |
add element
Adds a string together with the start/end position of chunks in this string. The new element is added at the end of the list. Empty strings are not added. All strings are converted to lower case. The data is not stored in the new element but in the current.
Definition at line 1705 of file DAMASK_marc.f90.
References io::io_isblank(), io::io_lc(), and io::io_stringpos().
|
private |
count number of key appearances
traverses list and counts each occurrence of specified key
Definition at line 1814 of file DAMASK_marc.f90.
References io::io_stringvalue().
|
private |
empties list and frees associated memory
called when variable goes out of scope. Triggers chain reaction for list
Definition at line 1760 of file DAMASK_marc.f90.
Referenced by list::tpartitionedstringlist::finalizearray().
|
private |
cleans entire array of linke lists
called when variable goes out of scope and deallocates the list at each array entry
Definition at line 1773 of file DAMASK_marc.f90.
Referenced by list::tpartitionedstringlist::finalizearray().
|
private |
empties list and frees associated memory
explicit interface to reset list. Triggers final statement (and following chain reaction)
Definition at line 1747 of file DAMASK_marc.f90.
|
private |
gets float value of for a given key from a linked list
gets the last value if the key occurs more than once. If key is not found exits with error unless default is given
Definition at line 1837 of file DAMASK_marc.f90.
References io::io_error(), io::io_floatvalue(), and io::io_stringvalue().
|
private |
gets array of float values of for a given key from a linked list
for cumulative keys, "()", values from all occurrences are return. Otherwise only all values from the last occurrence. If key is not found exits with error unless default is given.
Definition at line 1948 of file DAMASK_marc.f90.
References io::io_error(), io::io_floatvalue(), io::io_stringvalue(), and prec::preal.
|
private |
gets integer value of for a given key from a linked list
gets the last value if the key occurs more than once. If key is not found exits with error unless default is given
Definition at line 1869 of file DAMASK_marc.f90.
References io::io_error(), io::io_intvalue(), and io::io_stringvalue().
|
private |
gets array of integer values of for a given key from a linked list
for cumulative keys, "()", values from all occurrences are return. Otherwise only all values from the last occurrence. If key is not found exits with error unless default is given.
Definition at line 1993 of file DAMASK_marc.f90.
References io::io_error(), io::io_intvalue(), and io::io_stringvalue().
|
private |
gets string value of for a given key from a linked list
gets the last value if the key occurs more than once. If key is not found exits with error unless default is given. If raw is true, the the complete string is returned, otherwise the individual chunks are returned
Definition at line 1902 of file DAMASK_marc.f90.
References io::io_error(), and io::io_stringvalue().
|
private |
gets array of string values of for a given key from a linked list
for cumulative keys, "()", values from all occurrences are return. Otherwise only all values from the last occurrence. If key is not found exits with error unless default is given. If raw is true, the the complete string is returned, otherwise the individual chunks are returned
Definition at line 2039 of file DAMASK_marc.f90.
References io::io_error(), and io::io_stringvalue().
|
private |
reports wether a given key (string value at first position) exists in the list
Definition at line 1793 of file DAMASK_marc.f90.
References io::io_stringvalue().
|
private |
prints all elements
Strings are printed in order of insertion (FIFO)
Definition at line 1729 of file DAMASK_marc.f90.