MODFLOW 6  version 6.6.0.dev0
USGS Modular Hydrologic Model
listiteratormodule::listiteratortype Interface Reference

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

Inheritance diagram for listiteratormodule::listiteratortype:
Inheritance graph
Collaboration diagram for listiteratormodule::listiteratortype:
Collaboration graph

Private Member Functions

procedure has_next
 
procedure next
 
type(listiteratortype) function constructor (first_node)
 Constructor to create a ListIterator. More...
 

Private Attributes

type(listnodetype), pointer first_node => null()
 the List to iterate through More...
 
type(listnodetype), pointer current_node => null()
 the current node in the list the iterator is pointing at More...
 

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)
private

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()

procedure listiteratormodule::listiteratortype::has_next
private

Definition at line 19 of file ListIterator.f90.

◆ next()

procedure listiteratormodule::listiteratortype::next
private

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()
private

Definition at line 17 of file ListIterator.f90.

17  type(ListNodeType), pointer :: current_node => null() !< the current node in the list the iterator is pointing at

◆ first_node

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

Definition at line 16 of file ListIterator.f90.

16  type(ListNodeType), pointer :: first_node => null() !< the List to iterate through

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