MODFLOW 6  version 6.6.0.dev0
USGS Modular Hydrologic Model
ptrhashtableiteratormodule::ptrhashtableiteratortype Interface Reference

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

Inheritance diagram for ptrhashtableiteratormodule::ptrhashtableiteratortype:
Inheritance graph
Collaboration diagram for ptrhashtableiteratormodule::ptrhashtableiteratortype:
Collaboration graph

Private Member Functions

procedure has_next
 
procedure next
 
type(ptrhashtableiteratortype) function constructor (buckets)
 Constructor to create a PtrHashTableIterator. More...
 

Private Attributes

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

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

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 

◆ has_next()

procedure ptrhashtableiteratormodule::ptrhashtableiteratortype::has_next
private

Definition at line 19 of file PtrHashTableIterator.f90.

◆ next()

procedure ptrhashtableiteratormodule::ptrhashtableiteratortype::next
private

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

Definition at line 15 of file PtrHashTableIterator.f90.

15  type(KeyValueListType), pointer :: buckets(:) => null() !< the buckets of the PtrHashTable to iterate through

◆ curent_bucket_index

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

Definition at line 17 of file PtrHashTableIterator.f90.

17  integer(I4B) :: curent_bucket_index = 1 !< the bucket in which the current iterator belongs

◆ current_bucket_iterator

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

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: