gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
dc_hash::rewind Interface Reference

Public Member Functions

subroutine dchashrewind0 (hashv)

Detailed Description

Definition at line 237 of file dc_hash.f90.

Member Function/Subroutine Documentation

◆ dchashrewind0()

subroutine dc_hash::rewind::dchashrewind0 ( type(hash), intent(inout) hashv)

Initialize for searching entire hash

Rewinds hashv mainly for the purpose of extracting hash contents. Combined with DCHashNext, you can obtain a list of keys and values.

See the following sample source code:

program hash_sample
use dc_hash
type(HASH):: hashv
character(len = STRING):: key, value
logical:: end
call dchashrewind( hashv ) ! (inout)
do
call dchashnext( hashv = hashv, & ! (inout)
& key = key, value = value, end = end) ! (out)
if (end) exit
write(*,*) 'key=' // trim(key) // ', value=' // trim(value)
enddo
end program hash_sample
Hash (associative array) module.
Definition dc_hash.f90:143
Provides kind type parameter values.
Definition dc_types.f90:55
Parameters
[in,out]hashvHash variable

Definition at line 401 of file dc_hash.f90.

402 implicit none
403 type(HASH), intent(inout) :: hashv
404 continue
405 hashv % search_index = 1

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