Add an input value to the stored values, assuming we already know the offsets
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(index_rhash_t), | intent(inout) | :: | this | |||
| integer(kind=int64), | intent(in) | :: | index |
value to be stored |
||
| integer(kind=int64), | intent(out) | :: | pos |
on return, the position where this value was stored |
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