heap_is_empty Function

private pure function heap_is_empty(self) result(empty)

.true. when the heap holds no entries.

Type Bound

heap_t

Arguments

Type IntentOptional Attributes Name
class(heap_t), intent(in) :: self

Return Value logical


Called by

proc~~heap_is_empty~~CalledByGraph proc~heap_is_empty heap_t%heap_is_empty proc~a_star a_star proc~a_star->proc~heap_is_empty proc~dijkstra dijkstra proc~dijkstra->proc~heap_is_empty

Source Code

   pure function heap_is_empty(self) result(empty)
      !! `.true.` when the heap holds no entries.
      class(heap_t), intent(in) :: self
      logical :: empty

      empty = (self%n_entries == 0)
   end function heap_is_empty