typename_index_t
A hash table from names to positive integers, for lookups in long lists.
Components
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
| keys | type(string_t) | allocatabledimension(:) | the names | |
| n | integer | 0 | how many there are | |
| slots | integer | allocatabledimension(:) | each slot's entry, or 0 | |
| values | integer | allocatabledimension(:) | their values |
Source
Show the code
type :: name_index_t
!! A hash table from names to positive integers, for lookups in long lists.
integer, allocatable :: slots(:) !! each slot's entry, or 0
type(string_t), allocatable :: keys(:) !! the names
integer, allocatable :: values(:) !! their values
integer :: n = 0 !! how many there are
end type name_index_t