Get the hash value for an arbitrary input value
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(index_rhash_t), | intent(in) | :: | this | |||
| integer(kind=int64), | intent(in) | :: | index |
input value to get the hash value for |
function hash_function(this, index) result(hval) class(index_rhash_t), intent(in) :: this integer(int64), intent(in) :: index integer(int64) :: hval ! TODO: Implement an actual hash function hval = mod(index - 1, this%shared_ht%val_range()) + 1_int64 end function hash_function