Dynamic storage for meta data attribute/value pairs. More...
Data Types | |
| interface | meta_list_append |
| Interface to facilitate adding real/int/character values to list. More... | |
| type | meta_list_t |
| Linked list of meta data pairs. More... | |
| type | meta_pair_t |
| Type for storing a user defined metadata pair as linked list element. More... | |
Functions/Subroutines | |
| subroutine | del_meta_list (LIST) |
| Deletes all entries in list. More... | |
| type(meta_list_t) function | copy_meta_list (LIST) |
| Create a deep copy of a meta data list. More... | |
| subroutine | print_meta_list (LIST) |
| Prints meta pairs in list to screen. More... | |
| subroutine | meta_list_append_m (LIST, META) |
| Append META_PAIR_T object to list. More... | |
| subroutine | meta_list_append_r (LIST, ATTNAME, RVAL) |
| Append REAL value attribute to list. More... | |
| subroutine | meta_list_append_i (LIST, ATTNAME, IVAL) |
| Append INTEGER value attribute to list. More... | |
| subroutine | meta_list_append_c (LIST, ATTNAME, SVAL) |
| Append CHARACTER string value attribute to list. More... | |
| subroutine | meta_list_find_attr (LIST, ATTN, META, ERR) |
| Find (first) entry in list with matching attname. More... | |
| logical function | meta_list_has_attr (LIST, ATTN) |
| Tests whether list contains an entry with specified attname. More... | |
Variables | |
| character(len= *), parameter | unsetc = "unset" |
| Value to represent "unset" character variable. More... | |
| real, parameter | unsetr = HUGE(1.0) |
| Value to represent "unset" real variable. More... | |
Dynamic storage for meta data attribute/value pairs.
Provides types for handling "meta data" (attribute/value pairs) and a linked list construct for dynamic storage.
| Date | Ver | Comments |
|---|---|---|
| 16-Dec-2020 | 7.12 | Creation |
| type(meta_list_t) function w3metamd::copy_meta_list | ( | type(meta_list_t), intent(in) | LIST | ) |
Create a deep copy of a meta data list.
A "deep copy" ensures that a copy is made of the underlying linked list, rather than a simply copy of the pointers to the existing list.
| [in] | LIST | The list to copy |
Definition at line 116 of file w3metamd.F90.
References meta_list_append_m().
| subroutine w3metamd::del_meta_list | ( | type(meta_list_t), intent(inout) | LIST | ) |
Deletes all entries in list.
| [in,out] | LIST | The list to clear. |
Definition at line 75 of file w3metamd.F90.
Referenced by w3ounfmetamd::teardown_meta().
| subroutine w3metamd::meta_list_append_c | ( | type(meta_list_t), intent(inout) | LIST, |
| character(*), intent(in) | ATTNAME, | ||
| character(*), intent(in) | SVAL | ||
| ) |
Append CHARACTER string value attribute to list.
| [in,out] | LIST | The list to append to |
| [in] | ATTNAME | The attribute name |
| [in] | SVAL | The attribute value (CHARACTER string) |
Definition at line 284 of file w3metamd.F90.
| subroutine w3metamd::meta_list_append_i | ( | type(meta_list_t), intent(inout) | LIST, |
| character(*), intent(in) | ATTNAME, | ||
| integer, intent(in) | IVAL | ||
| ) |
Append INTEGER value attribute to list.
| [in,out] | LIST | The list to append to |
| [in] | ATTNAME | The attribute name |
| [in] | IVAL | The attribute value (INTEGER) |
Definition at line 255 of file w3metamd.F90.
| subroutine w3metamd::meta_list_append_m | ( | type(meta_list_t), intent(inout) | LIST, |
| type(meta_pair_t), intent(in) | META | ||
| ) |
Append META_PAIR_T object to list.
| [in,out] | LIST | The list to append to |
| [in] | META | The META_PAIR_T object to append. |
Definition at line 184 of file w3metamd.F90.
Referenced by copy_meta_list().
| subroutine w3metamd::meta_list_append_r | ( | type(meta_list_t), intent(inout) | LIST, |
| character(*), intent(in) | ATTNAME, | ||
| real, intent(in) | RVAL | ||
| ) |
Append REAL value attribute to list.
| [in,out] | LIST | The list to append to |
| [in] | ATTNAME | The attribute name |
| [in] | RVAL | The attribute value (REAL) |
Definition at line 226 of file w3metamd.F90.
| subroutine w3metamd::meta_list_find_attr | ( | type(meta_list_t), intent(in) | LIST, |
| character(*), intent(in) | ATTN, | ||
| type(meta_pair_t), intent(out), pointer | META, | ||
| integer, intent(out) | ERR | ||
| ) |
Find (first) entry in list with matching attname.
| [in] | LIST | List to search |
| [in] | ATTN | Attribute name to search for |
| [out] | META | Meta data type to store matched result in |
| [out] | ERR | Error status (0=Found, 1=Empty list, 2=Not found) |
Definition at line 313 of file w3metamd.F90.
| logical function w3metamd::meta_list_has_attr | ( | type(meta_list_t), intent(in) | LIST, |
| character(*), intent(in) | ATTN | ||
| ) |
Tests whether list contains an entry with specified attname.
| [in] | LIST | The list to search |
| [in] | ATTN | Attribute name to search for |
Definition at line 354 of file w3metamd.F90.
| subroutine w3metamd::print_meta_list | ( | type(meta_list_t), intent(in) | LIST | ) |
Prints meta pairs in list to screen.
| [in] | LIST | Linked list of meta data to print |
Definition at line 150 of file w3metamd.F90.
| character(len=*), parameter w3metamd::unsetc = "unset" |
Value to represent "unset" character variable.
Definition at line 38 of file w3metamd.F90.
| real, parameter w3metamd::unsetr = HUGE(1.0) |
Value to represent "unset" real variable.
Definition at line 40 of file w3metamd.F90.