Iterator type for iterating over hash table items
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(fhash_tbl_t), | public, | pointer | :: | tbl | => | NULL() | |
integer, | public | :: | bucket | = | 1 | ||
integer, | public | :: | depth | = | 1 |
Initialise fhash iterator
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(fhash_tbl_t), | intent(in), | target | :: | tbl |
Return next item from iterator
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(fhash_iter_t), | intent(inout) | :: | iter | |||
class(fhash_key_t), | intent(out), | allocatable | :: | key | ||
class(*), | intent(out), | allocatable | :: | data |
Reset iterator to beginning
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(fhash_iter_t), | intent(inout) | :: | iter |