Add an input value to the stored values, assuming we already know the offsets @param[in] index value to be stored @param[out] pos on return, the position where this value was stored
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(index_rhash_t), | intent(inout) | :: | this | |||
integer(kind=int64), | intent(in) | :: | index | |||
integer(kind=int64), | intent(out) | :: | pos |
subroutine add_index(this, index, pos)
class(index_rhash_t), intent(inout) :: this
integer(int64), intent(in) :: index
integer(int64), intent(out) :: pos
integer(int64) :: hval
hval = this%hash_function(index)
call this%shared_ht%add_value(hval, index, pos)
end subroutine add_index