81 class(PtrHashTableIteratorType) :: this
82
83 type(KeyValueListType), pointer :: bucket
84 integer(I4B) :: bucket_index
85
86
87
88 if (.not. this%current_bucket_iterator%has_next()) then
89 do bucket_index = this%curent_bucket_index + 1, size(this%buckets)
90 bucket => this%buckets(bucket_index)
91 if (bucket%count() > 0) then
92 deallocate (this%current_bucket_iterator)
93 allocate (this%current_bucket_iterator, source=bucket%iterator())
94 this%curent_bucket_index = bucket_index
95 exit
96 end if
97 end do
98 end if
99
100 call this%current_bucket_iterator%next()
101