MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
keyvaluelistmodule::keyvaluelisttype Type Reference

A list that stores items as a key-value pair. More...

Collaboration diagram for keyvaluelistmodule::keyvaluelisttype:
Collaboration graph

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

Detailed Description

Items in this list can be retrieved by using a key.

Definition at line 16 of file KeyValueList.f90.

Member Function/Subroutine Documentation

◆ add()

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.

◆ clear()

procedure keyvaluelistmodule::keyvaluelisttype::clear ( class(keyvaluelisttype) this)

clears all the nodes of the list

Definition at line 26 of file KeyValueList.f90.

◆ count()

procedure keyvaluelistmodule::keyvaluelisttype::count ( class(keyvaluelisttype) this)

Definition at line 25 of file KeyValueList.f90.

◆ get()

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.

◆ iterator()

procedure keyvaluelistmodule::keyvaluelisttype::iterator ( class(keyvaluelisttype) this)

Definition at line 22 of file KeyValueList.f90.

Member Data Documentation

◆ cnt

integer(i4b) keyvaluelistmodule::keyvaluelisttype::cnt = 0

Definition at line 20 of file KeyValueList.f90.

◆ first

type(keyvaluenodetype), pointer keyvaluelistmodule::keyvaluelisttype::first => null()
private

Definition at line 18 of file KeyValueList.f90.

◆ last

type(keyvaluenodetype), pointer keyvaluelistmodule::keyvaluelisttype::last => null()

Definition at line 19 of file KeyValueList.f90.


The documentation for this type was generated from the following file: