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

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

Inheritance diagram for ptrhashtableiteratormodule::ptrhashtableiteratortype:
Inheritance graph
Collaboration diagram for ptrhashtableiteratormodule::ptrhashtableiteratortype:
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(ptrhashtableiteratortype) function constructor (buckets)
 Constructor to create a PtrHashTableIterator.
procedure(has_next_if), deferred has_next (this)
procedure(next_if), deferred next (this)

Public Attributes

type(keyvaluelisttype), dimension(:), pointer buckets => null()
 the buckets of the PtrHashTable to iterate through
class(iteratortype), allocatable current_bucket_iterator
 the iterator of the bucket to which the current iterator belongs
integer(i4b) curent_bucket_index = 1
 the bucket in which the current iterator belongs

Detailed Description

Definition at line 14 of file PtrHashTableIterator.f90.

Member Function/Subroutine Documentation

◆ constructor()

type(ptrhashtableiteratortype) function ptrhashtableiteratormodule::ptrhashtableiteratortype::constructor ( type(keyvaluelisttype), dimension(:), intent(in), target buckets)

Definition at line 32 of file PtrHashTableIterator.f90.

33 type(KeyValueListType), target, dimension(:), intent(in) :: buckets
34 type(PtrHashTableIteratorType) :: iterator
35 ! -- local
36 type(KeyValueListType), pointer :: first_bucket
37
38 iterator%buckets => buckets
39
40 first_bucket => iterator%buckets(1)
41 allocate (iterator%current_bucket_iterator, source=first_bucket%iterator())
42
Here is the call graph for this function:

◆ 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 ptrhashtableiteratormodule::ptrhashtableiteratortype::has_next ( class(ptrhashtableiteratortype) this)

Definition at line 19 of file PtrHashTableIterator.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 ptrhashtableiteratormodule::ptrhashtableiteratortype::next ( class(ptrhashtableiteratortype) this)

Definition at line 20 of file PtrHashTableIterator.f90.

Here is the call graph for this function:

Member Data Documentation

◆ buckets

type(keyvaluelisttype), dimension(:), pointer ptrhashtableiteratormodule::ptrhashtableiteratortype::buckets => null()

Definition at line 15 of file PtrHashTableIterator.f90.

◆ curent_bucket_index

integer(i4b) ptrhashtableiteratormodule::ptrhashtableiteratortype::curent_bucket_index = 1

Definition at line 17 of file PtrHashTableIterator.f90.

◆ current_bucket_iterator

class(iteratortype), allocatable ptrhashtableiteratormodule::ptrhashtableiteratortype::current_bucket_iterator

Definition at line 16 of file PtrHashTableIterator.f90.

16 class(IteratorType), allocatable :: current_bucket_iterator !< the iterator of the bucket to which the current iterator belongs

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