entry_key Function

private function entry_key(this, entry) result(key)

Rebuild the key of an entry from the packed character pool.

Arguments

Type IntentOptional Attributes Name
class(hash_map_t), intent(in) :: this
integer(kind=default_int), intent(in) :: entry

Return Value character(len=:), allocatable


Called by

proc~~entry_key~~CalledByGraph proc~entry_key entry_key proc~hash_map_at hash_map_t%hash_map_at proc~hash_map_at->proc~entry_key proc~hash_map_keys hash_map_t%hash_map_keys proc~hash_map_keys->proc~entry_key proc~rebuild_buckets rebuild_buckets proc~rebuild_buckets->proc~entry_key proc~grow_buckets grow_buckets proc~grow_buckets->proc~rebuild_buckets proc~hash_map_remove hash_map_t%hash_map_remove proc~hash_map_remove->proc~rebuild_buckets proc~hash_map_insert hash_map_t%hash_map_insert proc~hash_map_insert->proc~grow_buckets

Variables

Type Visibility Attributes Name Initial
integer(kind=default_int), private :: i
integer(kind=default_int), private :: n

Source Code

   function entry_key(this, entry) result(key)
      !! Rebuild the key of an entry from the packed character pool.
      class(hash_map_t), intent(in) :: this
      integer(default_int), intent(in) :: entry
      character(len=:), allocatable :: key

      integer(default_int) :: i, n

      n = this%key_size(entry)
      allocate (character(len=n) :: key)
      do i = 1, n
         key(i:i) = this%key_pool(this%key_start(entry) + i - 1)
      end do
   end function entry_key