gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dc_hash::dchashrewind Interface Reference

Public Member Functions

subroutine dchashrewind0 (hashv)
 

Detailed Description

Definition at line 206 of file dc_hash.f90.

Member Function/Subroutine Documentation

◆ dchashrewind0()

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

ハッシュ内全体を探査するための初期化

主にハッシュの内容を取り出すことを目的として, hashv の巻き戻しを行います. DCHashNext との組み合わせによって キーと値のリストを取得することが可能です.

以下のサンプルソースコードを参照ください.

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
ハッシュ (連想配列) モジュール
Definition dc_hash.f90:143
種別型パラメタを提供します。
Definition dc_types.f90:55
Parameters
[in,out]hashvハッシュ変数

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: