MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
keyvaluelistiteratormodule::keyvaluelistiteratortype Interface Referenceabstract

An iterator used to iterate through a KeyValueList. More...

Inheritance diagram for keyvaluelistiteratormodule::keyvaluelistiteratortype:
Inheritance graph
Collaboration diagram for keyvaluelistiteratormodule::keyvaluelistiteratortype:
Collaboration graph

Public Member Functions

procedure has_next (this)
 Indicates if there is a next node in the iteration chain.
procedure next (this)
 Increment the iterator to the next node.
type(keyvaluelistiteratortype) function constructor (first_node)
 Constructor to create a KeyValueListIterator.
procedure(has_next_if), deferred has_next (this)
procedure(next_if), deferred next (this)

Public Attributes

type(keyvaluenodetype), pointer current_node => null()
 the current node in the list the iterator is pointing to

Private Attributes

type(keyvaluenodetype), pointer first_node => null()
 the KeyValueList to iterate through

Detailed Description

Definition at line 9 of file KeyValueListIterator.f90.

Member Function/Subroutine Documentation

◆ constructor()

type(keyvaluelistiteratortype) function keyvaluelistiteratormodule::keyvaluelistiteratortype::constructor ( type(keyvaluenodetype), intent(in), pointer first_node)

Definition at line 28 of file KeyValueListIterator.f90.

29 type(KeyValueNodeType), pointer, intent(in) :: first_node
30 type(KeyValueListIteratorType) :: iterator
31
32 iterator%first_node => first_node
33 iterator%current_node => null()
34

◆ has_next() [1/2]

procedure(has_next_if), deferred iteratormodule::iteratortype::has_next ( class(iteratortype) this)
pure virtualinherited

Definition at line 10 of file Iterator.f90.

◆ has_next() [2/2]

procedure keyvaluelistiteratormodule::keyvaluelistiteratortype::has_next ( class(keyvaluelistiteratortype) this)

Definition at line 14 of file KeyValueListIterator.f90.

◆ next() [1/2]

procedure(next_if), deferred iteratormodule::iteratortype::next ( class(iteratortype) this)
pure virtualinherited

Definition at line 11 of file Iterator.f90.

◆ next() [2/2]

procedure keyvaluelistiteratormodule::keyvaluelistiteratortype::next ( class(keyvaluelistiteratortype) this)

Definition at line 15 of file KeyValueListIterator.f90.

Here is the call graph for this function:

Member Data Documentation

◆ current_node

type(keyvaluenodetype), pointer keyvaluelistiteratormodule::keyvaluelistiteratortype::current_node => null()

Definition at line 12 of file KeyValueListIterator.f90.

◆ first_node

type(keyvaluenodetype), pointer keyvaluelistiteratormodule::keyvaluelistiteratortype::first_node => null()
private

Definition at line 11 of file KeyValueListIterator.f90.


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