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

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

Inheritance diagram for listiteratormodule::listiteratortype:
Inheritance graph
Collaboration diagram for listiteratormodule::listiteratortype:
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(listiteratortype) function constructor (first_node)
 Constructor to create a ListIterator.
procedure(has_next_if), deferred has_next (this)
procedure(next_if), deferred next (this)

Public Attributes

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

Private Attributes

type(listnodetype), pointer first_node => null()
 the List to iterate through

Detailed Description

Definition at line 14 of file ListIterator.f90.

Member Function/Subroutine Documentation

◆ constructor()

type(listiteratortype) function listiteratormodule::listiteratortype::constructor ( type(listnodetype), pointer first_node)

Definition at line 33 of file ListIterator.f90.

34 type(ListNodeType), pointer :: first_node
35 type(ListIteratorType) :: iterator
36
37 iterator%first_node => first_node
38 iterator%current_node => null()
39

◆ 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 listiteratormodule::listiteratortype::has_next ( class(listiteratortype) this)

Definition at line 19 of file ListIterator.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 listiteratormodule::listiteratortype::next ( class(listiteratortype) this)

Definition at line 20 of file ListIterator.f90.

Here is the call graph for this function:

Member Data Documentation

◆ current_node

type(listnodetype), pointer listiteratormodule::listiteratortype::current_node => null()

Definition at line 17 of file ListIterator.f90.

◆ first_node

type(listnodetype), pointer listiteratormodule::listiteratortype::first_node => null()
private

Definition at line 16 of file ListIterator.f90.


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