![]() |
MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
|
A list that stores items as a key-value pair. More...

Public Member Functions | |
| procedure | iterator (this) |
| procedure | add (this, key, val) |
| Add a key-value pair to the list. | |
| procedure | get (this, key) |
| Get a value using a key. | |
| procedure | count (this) |
| The nummer of items in the list. | |
| procedure | clear (this) |
| Clears the list. | |
Public Attributes | |
| type(keyvaluenodetype), pointer | last => null() |
| first item in the list | |
| integer(i4b) | cnt = 0 |
| number of items in the list | |
Private Attributes | |
| type(keyvaluenodetype), pointer | first => null() |
| first item in the list | |
Items in this list can be retrieved by using a key.
Definition at line 16 of file KeyValueList.f90.
| procedure keyvaluelistmodule::keyvaluelisttype::add | ( | class(keyvaluelisttype) | this, |
| character(len=*), intent(in) | key, | ||
| class(*), intent(in), pointer | val ) |
The list uses an 'append to end' approach for adding items
Definition at line 23 of file KeyValueList.f90.
| procedure keyvaluelistmodule::keyvaluelisttype::clear | ( | class(keyvaluelisttype) | this | ) |
clears all the nodes of the list
Definition at line 26 of file KeyValueList.f90.
| procedure keyvaluelistmodule::keyvaluelisttype::count | ( | class(keyvaluelisttype) | this | ) |
Definition at line 25 of file KeyValueList.f90.
| procedure keyvaluelistmodule::keyvaluelisttype::get | ( | class(keyvaluelisttype) | this, |
| character(len=*), intent(in) | key ) |
If the key can't be found the return value will be a null pointer
Definition at line 24 of file KeyValueList.f90.
| procedure keyvaluelistmodule::keyvaluelisttype::iterator | ( | class(keyvaluelisttype) | this | ) |
Definition at line 22 of file KeyValueList.f90.
| integer(i4b) keyvaluelistmodule::keyvaluelisttype::cnt = 0 |
Definition at line 20 of file KeyValueList.f90.
|
private |
Definition at line 18 of file KeyValueList.f90.
| type(keyvaluenodetype), pointer keyvaluelistmodule::keyvaluelisttype::last => null() |
Definition at line 19 of file KeyValueList.f90.