MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
memorycontaineriteratormodule::memorycontaineriteratortype Interface Reference

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

Collaboration diagram for memorycontaineriteratormodule::memorycontaineriteratortype:
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(memorycontaineriteratortype) function constructor (container_iterator)
 Constructor to create a MemoryContainerIterator.

Private Attributes

class(iteratortype), allocatable container_iterator
 the current iterator to the underlying container

Detailed Description

Definition at line 14 of file MemoryContainerIterator.f90.

Member Function/Subroutine Documentation

◆ constructor()

type(memorycontaineriteratortype) function memorycontaineriteratormodule::memorycontaineriteratortype::constructor ( class(iteratortype), allocatable container_iterator)

Definition at line 31 of file MemoryContainerIterator.f90.

32 class(IteratorType), allocatable :: container_iterator
33 type(MemoryContainerIteratorType) :: iterator
34
35 call move_alloc(container_iterator, iterator%container_iterator)
36

◆ has_next()

procedure memorycontaineriteratormodule::memorycontaineriteratortype::has_next ( class(memorycontaineriteratortype) this)

Definition at line 18 of file MemoryContainerIterator.f90.

◆ next()

procedure memorycontaineriteratormodule::memorycontaineriteratortype::next ( class(memorycontaineriteratortype) this)

Definition at line 19 of file MemoryContainerIterator.f90.

Here is the call graph for this function:

Member Data Documentation

◆ container_iterator

class(iteratortype), allocatable memorycontaineriteratormodule::memorycontaineriteratortype::container_iterator
private

Definition at line 16 of file MemoryContainerIterator.f90.

16 class(IteratorType), allocatable :: container_iterator !< the current iterator to the underlying container

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