hash_map_has_key Function

private function hash_map_has_key(this, key) result(present_in_map)

.true. when key is stored in the map.

Type Bound

hash_map_t

Arguments

Type IntentOptional Attributes Name
class(hash_map_t), intent(in) :: this
character(len=*), intent(in) :: key

Return Value logical


Calls

proc~~hash_map_has_key~~CallsGraph proc~hash_map_has_key hash_map_t%hash_map_has_key proc~find_entry find_entry proc~hash_map_has_key->proc~find_entry proc~home_bucket home_bucket proc~find_entry->proc~home_bucket proc~key_matches key_matches proc~find_entry->proc~key_matches interface~fnv_1a_hash fnv_1a_hash proc~home_bucket->interface~fnv_1a_hash

Source Code

   function hash_map_has_key(this, key) result(present_in_map)
      !! `.true.` when `key` is stored in the map.
      class(hash_map_t), intent(in) :: this
      character(len=*), intent(in) :: key
      logical :: present_in_map

      present_in_map = (find_entry(this, key) > 0)
   end function hash_map_has_key