fhash_iter_t Derived Type

type, public :: fhash_iter_t

Iterator type for iterating over hash table items


Contents


Components

Type Visibility Attributes Name Initial
type(fhash_tbl_t), public, pointer :: tbl => NULL()
integer, public :: bucket = 1
integer, public :: depth = 1

Constructor

public interface fhash_iter_t

  • private function fhash_iter_init(tbl) result(iter)

    Initialise fhash iterator

    Arguments

    Type IntentOptional Attributes Name
    type(fhash_tbl_t), intent(in), target :: tbl

    Return Value type(fhash_iter_t)


Type-Bound Procedures

procedure, public, :: next => fhash_iter_next

  • private function fhash_iter_next(iter, key, data) result(found)

    Return next item from iterator

    Arguments

    Type IntentOptional Attributes Name
    class(fhash_iter_t), intent(inout) :: iter
    class(fhash_key_t), intent(out), allocatable :: key
    class(*), intent(out), allocatable :: data

    Return Value logical

procedure, public, :: reset => fhash_iter_reset

  • private subroutine fhash_iter_reset(iter)

    Reset iterator to beginning

    Arguments

    Type IntentOptional Attributes Name
    class(fhash_iter_t), intent(inout) :: iter