Loading...
Searching...
No Matches
gtool_history_nmlinfo_internal::listnext Interface Reference

Public Member Functions

subroutine hstnmlinfolistnext (gthstnml_list, err)

Detailed Description

Definition at line 43 of file gtool_history_nmlinfo_internal.f90.

Member Function/Subroutine Documentation

◆ hstnmlinfolistnext()

subroutine gtool_history_nmlinfo_internal::listnext::hstnmlinfolistnext ( type(gthst_nmlinfo_entry), pointer gthstnml_list,
logical, intent(out), optional err )

Definition at line 57 of file gtool_history_nmlinfo_internal.f90.

59 !
60 ! リスト構造である *gthstnml_list* (GTHST_NMLINFO_ENTRY 型) を受け取り,
61 ! 次のエントリを *gthstnml_list* に再結合して返します.
62 ! 次のエントリが無い場合, *gthstnml_list* の最後のエントリの
63 ! *next* (空状態) に接続して返します.
64 ! *gthstnml_list* が始めから空の場合には空状態を返します.
65 !
66 ! *gthstnml_list* (type "GTHST_NMLINFO_ENTRY") that is a list structure
67 ! is recieved, and *gthstnml_list* is reassociated to next entry, and
68 ! is returned.
69 ! If next entry is not found, *gthstnml_list* is associated to
70 ! *next* in last entry (null), and returned.
71 ! If *gthstnml_list* is null from the beginning, null is returned.
72 !
74 use dc_trace, only: beginsub, endsub
75 use dc_error, only: storeerror, dc_noerr
76 use dc_types, only: token, string
77 implicit none
78 type(GTHST_NMLINFO_ENTRY), pointer:: gthstnml_list
79 ! (inout)
80 logical, intent(out), optional:: err
81 ! 例外処理用フラグ.
82 ! デフォルトでは, この手続き内でエラーが
83 ! 生じた場合, プログラムは強制終了します.
84 ! 引数 *err* が与えられる場合,
85 ! プログラムは強制終了せず, 代わりに
86 ! *err* に .true. が代入されます.
87 !
88 ! Exception handling flag.
89 ! By default, when error occur in
90 ! this procedure, the program aborts.
91 ! If this *err* argument is given,
92 ! .true. is substituted to *err* and
93 ! the program does not abort.
94
95 !-----------------------------------
96 ! 作業変数
97 ! Work variables
98 integer:: stat
99 character(STRING):: cause_c
100 character(*), parameter:: subname = 'HstNmlInfoListNext'
101 continue
102 call beginsub( subname )
103 stat = dc_noerr
104 cause_c = ''
105
106 !-----------------------------------------------------------------
107 ! 空状態の場合は何もしないで返す
108 ! If null, return without change
109 !-----------------------------------------------------------------
110 if ( .not. associated( gthstnml_list ) ) goto 999
111
112 !-----------------------------------------------------------------
113 ! 次のエントリに結合して返す
114 ! Next entry is associated, and returned
115 !-----------------------------------------------------------------
116 gthstnml_list => gthstnml_list % next
117
118 !-----------------------------------------------------------------
119 ! 終了処理, 例外処理
120 ! Termination and Exception handling
121 !-----------------------------------------------------------------
122999 continue
123 call storeerror( stat, subname, err, cause_c )
124 call endsub( subname )
subroutine, public storeerror(number, where, err, cause_c, cause_i)
Definition dc_error.f90:830
integer, parameter, public dc_noerr
Definition dc_error.f90:509
種別型パラメタを提供します。
Definition dc_types.f90:49
integer, parameter, public token
単語やキーワードを保持する文字型変数の種別型パラメタ
Definition dc_types.f90:109
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
Definition dc_types.f90:118

References dc_error::dc_noerr, dc_error::storeerror(), dc_types::string, and dc_types::token.

Here is the call graph for this function:

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