Look up a value in this hash table. Returns whether the value is stored and if yes, where @param[in] index value to be looked up @param[out] pos on return, the position of index if found, else 0 @param[out] t_found on return, true if and only if index was found
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(index_rhash_t), | intent(in) | :: | this | |||
integer(kind=int64), | intent(in) | :: | index | |||
integer(kind=int64), | intent(out) | :: | pos | |||
logical, | intent(out) | :: | t_found |
subroutine lookup(this, index, pos, t_found)
class(index_rhash_t), intent(in) :: this
integer(int64), intent(in) :: index
integer(int64), intent(out) :: pos
logical, intent(out) :: t_found
integer(int64) :: hval
hval = this%hash_function(index)
call this%shared_ht%direct_lookup(hval, index, pos, t_found)
end subroutine lookup